Skip to content

Commit b5cc99b

Browse files
feat(attributes): Add http.response.delivery_type and deprecate http.response_delivery_type
1 parent b5fdaf5 commit b5cc99b

5 files changed

Lines changed: 182 additions & 34 deletions

File tree

‎javascript/sentry-conventions/src/attributes.ts‎

Lines changed: 65 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11333,10 +11333,10 @@ export const HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED = 'http.response_content_
1133311333
*/
1133411334
export type HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED_TYPE = number;
1133511335

11336-
// Path: model/attributes/http/http__response_delivery_type.json
11336+
// Path: model/attributes/http/http__response__delivery_type.json
1133711337

1133811338
/**
11339-
* The delivery type of the resource, as reported by the browser's PerformanceResourceTiming.deliveryType property. `http.response_delivery_type`
11339+
* The delivery type of the resource, as reported by the browser's PerformanceResourceTiming.deliveryType property. `http.response.delivery_type`
1134011340
*
1134111341
* Attribute Value Type: `string` {@link HTTP_RESPONSE_DELIVERY_TYPE_TYPE}
1134211342
*
@@ -11350,17 +11350,45 @@ export type HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED_TYPE = number;
1135011350
* - `navigational-prefetch` - The resource was retrieved from a prefetched response, for example one that the Speculation Rules API stored.
1135111351
* - `` - The resource was not retrieved from a cache or by navigational prefetch.
1135211352
*
11353+
* Aliases: {@link _HTTP_RESPONSE_DELIVERY_TYPE} `http.response_delivery_type`
11354+
*
1135311355
* @example "cache"
1135411356
* @example "navigational-prefetch"
1135511357
* @example ""
1135611358
*/
11357-
export const HTTP_RESPONSE_DELIVERY_TYPE = 'http.response_delivery_type';
11359+
export const HTTP_RESPONSE_DELIVERY_TYPE = 'http.response.delivery_type';
1135811360

1135911361
/**
11360-
* Type for {@link HTTP_RESPONSE_DELIVERY_TYPE} http.response_delivery_type
11362+
* Type for {@link HTTP_RESPONSE_DELIVERY_TYPE} http.response.delivery_type
1136111363
*/
1136211364
export type HTTP_RESPONSE_DELIVERY_TYPE_TYPE = string;
1136311365

11366+
// Path: model/attributes/http/http__response_delivery_type.json
11367+
11368+
/**
11369+
* The delivery type of the resource, as reported by the browser's PerformanceResourceTiming.deliveryType property. `http.response_delivery_type`
11370+
*
11371+
* Attribute Value Type: `string` {@link _HTTP_RESPONSE_DELIVERY_TYPE_TYPE}
11372+
*
11373+
* Apply Scrubbing: manual
11374+
*
11375+
* Attribute defined in OTEL: No
11376+
* Visibility: public
11377+
*
11378+
* Aliases: {@link HTTP_RESPONSE_DELIVERY_TYPE} `http.response.delivery_type`
11379+
*
11380+
* @deprecated Use {@link HTTP_RESPONSE_DELIVERY_TYPE} (http.response.delivery_type) instead - Use http.response.delivery_type, which follows the http.response.* namespace.
11381+
* @example "cache"
11382+
* @example "navigational-prefetch"
11383+
* @example ""
11384+
*/
11385+
export const _HTTP_RESPONSE_DELIVERY_TYPE = 'http.response_delivery_type';
11386+
11387+
/**
11388+
* Type for {@link _HTTP_RESPONSE_DELIVERY_TYPE} http.response_delivery_type
11389+
*/
11390+
export type _HTTP_RESPONSE_DELIVERY_TYPE_TYPE = string;
11391+
1136411392
// Path: model/attributes/http/http__response__header__content-length.json
1136511393

1136611394
/**
@@ -23116,6 +23144,7 @@ export const ATTRIBUTE_TYPE: Record<string, AttributeType> = {
2311623144
'http.response.body.size': 'integer',
2311723145
'http.response_content_length': 'integer',
2311823146
'http.response_content_length_uncompressed': 'integer',
23147+
'http.response.delivery_type': 'string',
2311923148
'http.response_delivery_type': 'string',
2312023149
'http.response.header.content-length': 'string',
2312123150
'http.response.header.<key>': 'string[]',
@@ -24116,6 +24145,7 @@ export type AttributeName =
2411624145
| typeof HTTP_RESPONSE_CONTENT_LENGTH
2411724146
| typeof HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED
2411824147
| typeof HTTP_RESPONSE_DELIVERY_TYPE
24148+
| typeof _HTTP_RESPONSE_DELIVERY_TYPE
2411924149
| typeof HTTP_RESPONSE_HEADER_CONTENT_LENGTH
2412024150
| typeof HTTP_RESPONSE_HEADER_KEY
2412124151
| typeof HTTP_RESPONSE_SIZE
@@ -33114,21 +33144,48 @@ export const ATTRIBUTE_METADATA: Record<AttributeName, AttributeMetadata> = {
3311433144
},
3311533145
],
3311633146
},
33117-
'http.response_delivery_type': {
33147+
'http.response.delivery_type': {
3311833148
brief:
3311933149
"The delivery type of the resource, as reported by the browser's PerformanceResourceTiming.deliveryType property.",
3312033150
type: 'string',
33121-
keys: ['http.response_delivery_type'],
33151+
keys: ['http.response.delivery_type', 'http.response_delivery_type'],
3312233152
applyScrubbing: {
3312333153
key: 'manual',
3312433154
},
3312533155
isInOtel: false,
3312633156
visibility: 'public',
3312733157
example: 'cache',
3312833158
examples: ['cache', 'navigational-prefetch', ''],
33129-
changelog: [{ version: 'next', prs: [825], description: 'Added http.response_delivery_type attribute' }],
33159+
aliases: ['http.response_delivery_type'],
33160+
changelog: [{ version: 'next', prs: [825], description: 'Added http.response.delivery_type attribute' }],
3313033161
additionalContext: ['Browsers may add more values later.'],
3313133162
},
33163+
'http.response_delivery_type': {
33164+
brief:
33165+
"The delivery type of the resource, as reported by the browser's PerformanceResourceTiming.deliveryType property.",
33166+
type: 'string',
33167+
keys: ['http.response.delivery_type', 'http.response_delivery_type'],
33168+
applyScrubbing: {
33169+
key: 'manual',
33170+
},
33171+
isInOtel: false,
33172+
visibility: 'public',
33173+
example: 'cache',
33174+
examples: ['cache', 'navigational-prefetch', ''],
33175+
deprecation: {
33176+
replacement: 'http.response.delivery_type',
33177+
reason: 'Use http.response.delivery_type, which follows the http.response.* namespace.',
33178+
status: 'backfill',
33179+
},
33180+
aliases: ['http.response.delivery_type'],
33181+
changelog: [
33182+
{
33183+
version: 'next',
33184+
prs: [825],
33185+
description: 'Added http.response_delivery_type attribute, deprecated in favor of http.response.delivery_type',
33186+
},
33187+
],
33188+
},
3313233189
'http.response.header.content-length': {
3313333190
brief: 'The size of the message body sent to the recipient (in bytes)',
3313433191
type: 'string',
@@ -42176,6 +42233,7 @@ export type Attributes = {
4217642233
[HTTP_RESPONSE_CONTENT_LENGTH]?: HTTP_RESPONSE_CONTENT_LENGTH_TYPE;
4217742234
[HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED]?: HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED_TYPE;
4217842235
[HTTP_RESPONSE_DELIVERY_TYPE]?: HTTP_RESPONSE_DELIVERY_TYPE_TYPE;
42236+
[_HTTP_RESPONSE_DELIVERY_TYPE]?: _HTTP_RESPONSE_DELIVERY_TYPE_TYPE;
4217942237
[HTTP_RESPONSE_HEADER_CONTENT_LENGTH]?: HTTP_RESPONSE_HEADER_CONTENT_LENGTH_TYPE;
4218042238
[HTTP_RESPONSE_HEADER_KEY]?: HTTP_RESPONSE_HEADER_KEY_TYPE;
4218142239
[HTTP_RESPONSE_SIZE]?: HTTP_RESPONSE_SIZE_TYPE;

‎javascript/sentry-conventions/src/search.ts‎

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2812,6 +2812,11 @@ export const SEARCH_HTTP__RESPONSE__BODY__DECODED_SIZE = 'http.response.body.dec
28122812
*/
28132813
export const SEARCH_HTTP__RESPONSE__BODY__SIZE = 'http.response.body.size';
28142814

2815+
/**
2816+
* Search name for {@link attributes.HTTP_RESPONSE_DELIVERY_TYPE}. `http.response.delivery_type`
2817+
*/
2818+
export const SEARCH_HTTP__RESPONSE__DELIVERY_TYPE = 'http.response.delivery_type';
2819+
28152820
/**
28162821
* Search name for {@link attributes.HTTP_RESPONSE_HEADER_KEY}. `http.response.header.<key>`
28172822
*/
@@ -2854,7 +2859,9 @@ export const SEARCH_HTTP__RESPONSE_CONTENT_LENGTH = 'http.response_content_lengt
28542859
export const SEARCH_HTTP__RESPONSE_CONTENT_LENGTH_UNCOMPRESSED = 'http.response_content_length_uncompressed';
28552860

28562861
/**
2857-
* Search name for {@link attributes.HTTP_RESPONSE_DELIVERY_TYPE}. `http.response_delivery_type`
2862+
* Search name for {@link attributes._HTTP_RESPONSE_DELIVERY_TYPE}. `http.response_delivery_type`
2863+
*
2864+
* @deprecated Use {@link SEARCH_HTTP__RESPONSE__DELIVERY_TYPE} (`http.response.delivery_type`) instead
28582865
*/
28592866
export const SEARCH_HTTP__RESPONSE_DELIVERY_TYPE = 'http.response_delivery_type';
28602867

@@ -6258,6 +6265,7 @@ export type AttributeSearchName =
62586265
| typeof SEARCH_HTTP__REQUEST_METHOD
62596266
| typeof SEARCH_HTTP__RESPONSE__BODY__DECODED_SIZE
62606267
| typeof SEARCH_HTTP__RESPONSE__BODY__SIZE
6268+
| typeof SEARCH_HTTP__RESPONSE__DELIVERY_TYPE
62616269
| typeof SEARCH_HTTP__RESPONSE__HEADER__KEY
62626270
| typeof SEARCH_HTTP__RESPONSE__HEADER__CONTENT_LENGTH
62636271
| typeof SEARCH_HTTP__RESPONSE__SIZE
@@ -10107,6 +10115,13 @@ export const ATTRIBUTE_SEARCH_METADATA: Record<string, AttributeSearchMetadata>
1010710115
'http.response_content_length',
1010810116
],
1010910117
},
10118+
'http.response.delivery_type': {
10119+
canonicalName: 'http.response.delivery_type',
10120+
type: 'string',
10121+
brief:
10122+
"The delivery type of the resource, as reported by the browser's PerformanceResourceTiming.deliveryType property.",
10123+
deprecationChain: ['http.response.delivery_type', 'http.response_delivery_type'],
10124+
},
1011010125
'http.response.header.<key>': {
1011110126
canonicalName: 'http.response.header.<key>',
1011210127
type: 'string[]',
@@ -10157,11 +10172,11 @@ export const ATTRIBUTE_SEARCH_METADATA: Record<string, AttributeSearchMetadata>
1015710172
],
1015810173
},
1015910174
'http.response_delivery_type': {
10160-
canonicalName: 'http.response_delivery_type',
10175+
canonicalName: 'http.response.delivery_type',
1016110176
type: 'string',
1016210177
brief:
1016310178
"The delivery type of the resource, as reported by the browser's PerformanceResourceTiming.deliveryType property.",
10164-
deprecationChain: ['http.response_delivery_type'],
10179+
deprecationChain: ['http.response.delivery_type', 'http.response_delivery_type'],
1016510180
},
1016610181
'http.response_status_code': {
1016710182
canonicalName: 'http.response.status_code',
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"key": "http.response.delivery_type",
3+
"brief": "The delivery type of the resource, as reported by the browser's PerformanceResourceTiming.deliveryType property.",
4+
"type": "string",
5+
"apply_scrubbing": {
6+
"key": "manual"
7+
},
8+
"additional_context": ["Browsers may add more values later."],
9+
"is_in_otel": false,
10+
"visibility": "public",
11+
"examples": ["cache", "navigational-prefetch", ""],
12+
"enum_values": [
13+
{
14+
"value": "cache",
15+
"brief": "The resource was retrieved from a cache."
16+
},
17+
{
18+
"value": "navigational-prefetch",
19+
"brief": "The resource was retrieved from a prefetched response, for example one that the Speculation Rules API stored."
20+
},
21+
{
22+
"value": "",
23+
"brief": "The resource was not retrieved from a cache or by navigational prefetch."
24+
}
25+
],
26+
"alias": ["http.response_delivery_type"],
27+
"changelog": [
28+
{
29+
"version": "next",
30+
"prs": [825],
31+
"description": "Added http.response.delivery_type attribute"
32+
}
33+
]
34+
}

‎model/attributes/http/http__response_delivery_type.json‎

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,20 @@
55
"apply_scrubbing": {
66
"key": "manual"
77
},
8-
"additional_context": ["Browsers may add more values later."],
98
"is_in_otel": false,
109
"visibility": "public",
1110
"examples": ["cache", "navigational-prefetch", ""],
12-
"enum_values": [
13-
{
14-
"value": "cache",
15-
"brief": "The resource was retrieved from a cache."
16-
},
17-
{
18-
"value": "navigational-prefetch",
19-
"brief": "The resource was retrieved from a prefetched response, for example one that the Speculation Rules API stored."
20-
},
21-
{
22-
"value": "",
23-
"brief": "The resource was not retrieved from a cache or by navigational prefetch."
24-
}
25-
],
11+
"alias": ["http.response.delivery_type"],
12+
"deprecation": {
13+
"_status": "backfill",
14+
"replacement": "http.response.delivery_type",
15+
"reason": "Use http.response.delivery_type, which follows the http.response.* namespace."
16+
},
2617
"changelog": [
2718
{
2819
"version": "next",
2920
"prs": [825],
30-
"description": "Added http.response_delivery_type attribute"
21+
"description": "Added http.response_delivery_type attribute, deprecated in favor of http.response.delivery_type"
3122
}
3223
]
3324
}

‎python/src/sentry_conventions/_attributes.py‎

Lines changed: 58 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ class _AttributeNamesMeta(type):
159159
"_HTTP_REQUEST_METHOD",
160160
"HTTP_RESPONSE_CONTENT_LENGTH",
161161
"HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED",
162+
"_HTTP_RESPONSE_DELIVERY_TYPE",
162163
"HTTP_RESPONSE_TRANSFER_SIZE",
163164
"HTTP_SCHEME",
164165
"HTTP_SERVER_NAME",
@@ -6745,6 +6746,26 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
67456746
Example: 123
67466747
"""
67476748

6749+
# Path: model/attributes/http/http__response__delivery_type.json
6750+
HTTP_RESPONSE_DELIVERY_TYPE: Literal["http.response.delivery_type"] = (
6751+
"http.response.delivery_type"
6752+
)
6753+
"""The delivery type of the resource, as reported by the browser's PerformanceResourceTiming.deliveryType property.
6754+
6755+
Type: str
6756+
Apply Scrubbing: manual
6757+
Defined in OTEL: No
6758+
Visibility: public
6759+
Well-defined Values:
6760+
- `cache` - The resource was retrieved from a cache.
6761+
- `navigational-prefetch` - The resource was retrieved from a prefetched response, for example one that the Speculation Rules API stored.
6762+
- `` - The resource was not retrieved from a cache or by navigational prefetch.
6763+
Aliases: http.response_delivery_type
6764+
Example: "cache"
6765+
Example: "navigational-prefetch"
6766+
Example: ""
6767+
"""
6768+
67486769
# Path: model/attributes/http/http__response__header__[key].json
67496770
HTTP_RESPONSE_HEADER_KEY: Literal["http.response.header.<key>"] = (
67506771
"http.response.header.<key>"
@@ -6845,7 +6866,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
68456866
"""
68466867

68476868
# Path: model/attributes/http/http__response_delivery_type.json
6848-
HTTP_RESPONSE_DELIVERY_TYPE: Literal["http.response_delivery_type"] = (
6869+
_HTTP_RESPONSE_DELIVERY_TYPE: Literal["http.response_delivery_type"] = (
68496870
"http.response_delivery_type"
68506871
)
68516872
"""The delivery type of the resource, as reported by the browser's PerformanceResourceTiming.deliveryType property.
@@ -6854,10 +6875,8 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
68546875
Apply Scrubbing: manual
68556876
Defined in OTEL: No
68566877
Visibility: public
6857-
Well-defined Values:
6858-
- `cache` - The resource was retrieved from a cache.
6859-
- `navigational-prefetch` - The resource was retrieved from a prefetched response, for example one that the Speculation Rules API stored.
6860-
- `` - The resource was not retrieved from a cache or by navigational prefetch.
6878+
Aliases: http.response.delivery_type
6879+
DEPRECATED: Use http.response.delivery_type instead - Use http.response.delivery_type, which follows the http.response.* namespace.
68616880
Example: "cache"
68626881
Example: "navigational-prefetch"
68636882
Example: ""
@@ -23165,6 +23184,28 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
2316523184
],
2316623185
search_alias=SearchAlias(name="http.response.body.size", type="byte"),
2316723186
),
23187+
"http.response.delivery_type": AttributeMetadata(
23188+
brief="The delivery type of the resource, as reported by the browser's PerformanceResourceTiming.deliveryType property.",
23189+
type=AttributeType.STRING,
23190+
keys=(
23191+
"http.response.delivery_type",
23192+
"http.response_delivery_type",
23193+
),
23194+
apply_scrubbing=ApplyScrubbingInfo(key=ApplyScrubbing.MANUAL),
23195+
is_in_otel=False,
23196+
visibility=Visibility.PUBLIC,
23197+
example="cache",
23198+
examples=["cache", "navigational-prefetch", ""],
23199+
aliases=["http.response_delivery_type"],
23200+
changelog=[
23201+
ChangelogEntry(
23202+
version="next",
23203+
prs=[825],
23204+
description="Added http.response.delivery_type attribute",
23205+
),
23206+
],
23207+
additional_context=["Browsers may add more values later."],
23208+
),
2316823209
"http.response.header.<key>": AttributeMetadata(
2316923210
brief="HTTP response headers, <key> being the lower-cased, but otherwise unchanged HTTP Header name, the value being the header values.",
2317023211
type=AttributeType.STRING_ARRAY,
@@ -23318,20 +23359,28 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
2331823359
"http.response_delivery_type": AttributeMetadata(
2331923360
brief="The delivery type of the resource, as reported by the browser's PerformanceResourceTiming.deliveryType property.",
2332023361
type=AttributeType.STRING,
23321-
keys=("http.response_delivery_type",),
23362+
keys=(
23363+
"http.response.delivery_type",
23364+
"http.response_delivery_type",
23365+
),
2332223366
apply_scrubbing=ApplyScrubbingInfo(key=ApplyScrubbing.MANUAL),
2332323367
is_in_otel=False,
2332423368
visibility=Visibility.PUBLIC,
2332523369
example="cache",
2332623370
examples=["cache", "navigational-prefetch", ""],
23371+
deprecation=DeprecationInfo(
23372+
replacement="http.response.delivery_type",
23373+
reason="Use http.response.delivery_type, which follows the http.response.* namespace.",
23374+
status=DeprecationStatus.BACKFILL,
23375+
),
23376+
aliases=["http.response.delivery_type"],
2332723377
changelog=[
2332823378
ChangelogEntry(
2332923379
version="next",
2333023380
prs=[825],
23331-
description="Added http.response_delivery_type attribute",
23381+
description="Added http.response_delivery_type attribute, deprecated in favor of http.response.delivery_type",
2333223382
),
2333323383
],
23334-
additional_context=["Browsers may add more values later."],
2333523384
),
2333623385
"http.response_transfer_size": AttributeMetadata(
2333723386
brief="The transfer size of the response (in bytes).",
@@ -33369,6 +33418,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
3336933418
"http.request_method": str,
3337033419
"http.response.body.decoded_size": int,
3337133420
"http.response.body.size": int,
33421+
"http.response.delivery_type": str,
3337233422
"http.response.header.<key>": List[str],
3337333423
"http.response.header.content-length": str,
3337433424
"http.response.size": int,

0 commit comments

Comments
 (0)