Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions javascript/sentry-conventions/src/attributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17843,9 +17843,9 @@ export type SENTRY_KIND_TYPE = string;
*
* Well-defined Values:
* - `previous_trace` - The linked span is the root span of the trace before this trace, for example the pageload span before a navigation span.
* - `cache_origin` - The linked span wrote the cached value that this span reads.
* - `cache_origin` - The linked span produced the cached value that this span uses. For example, a `cache.get` span links the `cache.put` span that wrote the cache entry. A pageload span links the span that rendered the reused part of the page (see `page.server_rendering.type`).
* - `message_origin` - The linked span published the queue message that this span processes.
* - `server_request` - The linked span handled the server request that rendered the document of this pageload span. Set when the trace context arrived too late for the pageload span to continue that trace.
* - `server_request` - The linked span handled the request for the document of this pageload span. Set only when the trace context of that request arrived too late, so the pageload span could not continue the trace. For a part of the page that the server reused from an earlier request, use `cache_origin`.
*
* @example "previous_trace"
* @example "cache_origin"
Expand Down Expand Up @@ -35662,12 +35662,15 @@ export const ATTRIBUTE_METADATA: Record<AttributeName, AttributeMetadata> = {
visibility: 'public',
example: 'static',
examples: ['static', 'partially_static', 'dynamic'],
changelog: [{ version: '0.31.0', prs: [740], description: 'Added page.server_rendering.type attribute' }],
changelog: [
{ version: 'next', prs: [789], description: 'Added the cache_origin link to the reused part' },
{ version: '0.31.0', prs: [740], description: 'Added page.server_rendering.type attribute' },
],
additionalContext: [
'Set only by an SDK that controls the server render, and only when the SDK knows the value.',
'More values can be added later.',
'Not set when the browser renders the content of the page (client-side rendering), or when the SDK does not know the value.',
'With `static` and `partially_static`, the server spans that rendered the reused part are not in the trace of the pageload span. If Sentry recorded them, they are in a different trace.',
'With `static` and `partially_static`, the server spans that rendered the reused part are not in the trace of the pageload span. If Sentry recorded them, they are in a different trace. The pageload span can link to them with a `cache_origin` link.',
"Describes how the server rendered the page, not how the page was delivered. A CDN or the browser cache can reuse a response with any value. For the browser's own [prerendering](https://developer.mozilla.org/en-US/docs/Web/API/Document/prerendering), see `browser.navigation.type`.",
],
},
Expand Down Expand Up @@ -37082,6 +37085,7 @@ export const ATTRIBUTE_METADATA: Record<AttributeName, AttributeMetadata> = {
example: 'previous_trace',
examples: ['previous_trace', 'cache_origin', 'message_origin', 'server_request'],
changelog: [
{ version: 'next', prs: [789], description: 'Added pageload examples to cache_origin and server_request' },
{
version: '0.28.0',
prs: [724, 738, 739],
Expand All @@ -37094,6 +37098,7 @@ export const ATTRIBUTE_METADATA: Record<AttributeName, AttributeMetadata> = {
'This attribute is exclusively set on span links.',
'Sentry instrumentation setting span links, sets it to describe the relationship between the span and the linked span.',
'Add each new link type to `enum_values`, with a brief that says what the linked span is.',
'A span can have links of different types. For example, a pageload span can have a `cache_origin` link and a `server_request` link.',
],
searchAlias: {
name: 'link.type',
Expand Down
7 changes: 6 additions & 1 deletion model/attributes/page/page__server_rendering__type.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"Set only by an SDK that controls the server render, and only when the SDK knows the value.",
"More values can be added later.",
"Not set when the browser renders the content of the page (client-side rendering), or when the SDK does not know the value.",
"With `static` and `partially_static`, the server spans that rendered the reused part are not in the trace of the pageload span. If Sentry recorded them, they are in a different trace.",
"With `static` and `partially_static`, the server spans that rendered the reused part are not in the trace of the pageload span. If Sentry recorded them, they are in a different trace. The pageload span can link to them with a `cache_origin` link.",
"Describes how the server rendered the page, not how the page was delivered. A CDN or the browser cache can reuse a response with any value. For the browser's own [prerendering](https://developer.mozilla.org/en-US/docs/Web/API/Document/prerendering), see `browser.navigation.type`."
],
"is_in_otel": false,
Expand All @@ -30,6 +30,11 @@
}
],
"changelog": [
{
"version": "next",
"prs": [789],
"description": "Added the cache_origin link to the reused part"
},
{
"version": "0.31.0",
"prs": [740],
Expand Down
12 changes: 9 additions & 3 deletions model/attributes/sentry/sentry__link__type.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"additional_context": [
"This attribute is exclusively set on span links.",
"Sentry instrumentation setting span links, sets it to describe the relationship between the span and the linked span.",
"Add each new link type to `enum_values`, with a brief that says what the linked span is."
"Add each new link type to `enum_values`, with a brief that says what the linked span is.",
"A span can have links of different types. For example, a pageload span can have a `cache_origin` link and a `server_request` link."
],
"search_alias": {
"name": "link.type"
Expand All @@ -23,18 +24,23 @@
},
{
"value": "cache_origin",
"brief": "The linked span wrote the cached value that this span reads."
"brief": "The linked span produced the cached value that this span uses. For example, a `cache.get` span links the `cache.put` span that wrote the cache entry. A pageload span links the span that rendered the reused part of the page (see `page.server_rendering.type`)."
},
{
"value": "message_origin",
"brief": "The linked span published the queue message that this span processes."
},
{
"value": "server_request",
"brief": "The linked span handled the server request that rendered the document of this pageload span. Set when the trace context arrived too late for the pageload span to continue that trace."
"brief": "The linked span handled the request for the document of this pageload span. Set only when the trace context of that request arrived too late, so the pageload span could not continue the trace. For a part of the page that the server reused from an earlier request, use `cache_origin`."
}
],
"changelog": [
{
"version": "next",
"prs": [789],
"description": "Added pageload examples to cache_origin and server_request"
},
{
"version": "0.28.0",
"prs": [724, 738, 739],
Expand Down
17 changes: 14 additions & 3 deletions python/src/sentry_conventions/attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -10600,9 +10600,9 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
Visibility: public
Well-defined Values:
- `previous_trace` - The linked span is the root span of the trace before this trace, for example the pageload span before a navigation span.
- `cache_origin` - The linked span wrote the cached value that this span reads.
- `cache_origin` - The linked span produced the cached value that this span uses. For example, a `cache.get` span links the `cache.put` span that wrote the cache entry. A pageload span links the span that rendered the reused part of the page (see `page.server_rendering.type`).
- `message_origin` - The linked span published the queue message that this span processes.
- `server_request` - The linked span handled the server request that rendered the document of this pageload span. Set when the trace context arrived too late for the pageload span to continue that trace.
- `server_request` - The linked span handled the request for the document of this pageload span. Set only when the trace context of that request arrived too late, so the pageload span could not continue the trace. For a part of the page that the server reused from an earlier request, use `cache_origin`.
Example: "previous_trace"
Example: "cache_origin"
Example: "message_origin"
Expand Down Expand Up @@ -26698,6 +26698,11 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
example="static",
examples=["static", "partially_static", "dynamic"],
changelog=[
ChangelogEntry(
version="next",
prs=[789],
description="Added the cache_origin link to the reused part",
),
ChangelogEntry(
version="0.31.0",
prs=[740],
Expand All @@ -26708,7 +26713,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
"Set only by an SDK that controls the server render, and only when the SDK knows the value.",
"More values can be added later.",
"Not set when the browser renders the content of the page (client-side rendering), or when the SDK does not know the value.",
"With `static` and `partially_static`, the server spans that rendered the reused part are not in the trace of the pageload span. If Sentry recorded them, they are in a different trace.",
"With `static` and `partially_static`, the server spans that rendered the reused part are not in the trace of the pageload span. If Sentry recorded them, they are in a different trace. The pageload span can link to them with a `cache_origin` link.",
"Describes how the server rendered the page, not how the page was delivered. A CDN or the browser cache can reuse a response with any value. For the browser's own [prerendering](https://developer.mozilla.org/en-US/docs/Web/API/Document/prerendering), see `browser.navigation.type`.",
],
),
Expand Down Expand Up @@ -28357,6 +28362,11 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
example="previous_trace",
examples=["previous_trace", "cache_origin", "message_origin", "server_request"],
changelog=[
ChangelogEntry(
version="next",
prs=[789],
description="Added pageload examples to cache_origin and server_request",
),
ChangelogEntry(
version="0.28.0",
prs=[724, 738, 739],
Expand All @@ -28375,6 +28385,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
"This attribute is exclusively set on span links.",
"Sentry instrumentation setting span links, sets it to describe the relationship between the span and the linked span.",
"Add each new link type to `enum_values`, with a brief that says what the linked span is.",
"A span can have links of different types. For example, a pageload span can have a `cache_origin` link and a `server_request` link.",
],
search_alias=SearchAlias(name="link.type"),
),
Expand Down
Loading