Skip to content

Commit cc4bd19

Browse files
committed
feat(attributes): Add deprecated inp attribute
1 parent cfca5d1 commit cc4bd19

File tree

6 files changed

+121
-2
lines changed

6 files changed

+121
-2
lines changed

generated/attributes/all.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
This page lists all available attributes across all categories.
66

7-
Total attributes: 427
7+
Total attributes: 428
88

99
## Stable Attributes
1010

@@ -414,6 +414,7 @@ Total attributes: 427
414414
| [`http.target`](./http.md#httptarget) | [`url.path`](./url.md#urlpath) |
415415
| [`http.url`](./http.md#httpurl) | [`url.full`](./url.md#urlfull) |
416416
| [`http.user_agent`](./http.md#httpuser_agent) | [`user_agent.original`](./user_agent.md#user_agentoriginal) |
417+
| [`inp`](./general.md#inp) | [`browser.web_vital.inp.value`](./browser.md#browserweb_vitalinpvalue) |
417418
| [`lcp`](./general.md#lcp) | [`browser.web_vital.lcp.value`](./browser.md#browserweb_vitallcpvalue) |
418419
| [`method`](./general.md#method) | [`http.request.method`](./http.md#httprequestmethod) |
419420
| [`net.host.ip`](./net.md#nethostip) | [`network.local.address`](./network.md#networklocaladdress) |

generated/attributes/general.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
- [cls](#cls)
1414
- [environment](#environment)
1515
- [fs_error](#fs_error)
16+
- [inp](#inp)
1617
- [lcp](#lcp)
1718
- [method](#method)
1819
- [profile_id](#profile_id)
@@ -134,6 +135,20 @@ The error message of a file system error.
134135
| Deprecated | Yes, use `error.type` instead |
135136
| Deprecation Reason | This attribute is not part of the OpenTelemetry specification and error.type fits much better. |
136137

138+
### inp
139+
140+
The value of the recorded Interaction to Next Paint (INP) web vital
141+
142+
| Property | Value |
143+
| --- | --- |
144+
| Type | `double` |
145+
| Has PII | false |
146+
| Exists in OpenTelemetry | No |
147+
| Example | `200` |
148+
| Deprecated | Yes, use `browser.web_vital.inp.value` instead |
149+
| Deprecation Reason | The INP web vital is now recorded as a browser.web_vital.inp.value attribute. |
150+
| Aliases | `browser.web_vital.inp.value` |
151+
137152
### lcp
138153

139154
The value of the recorded Largest Contentful Paint (LCP) web vital

javascript/sentry-conventions/src/attributes.ts

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4010,6 +4010,29 @@ export const ID = 'id';
40104010
*/
40114011
export type ID_TYPE = string;
40124012

4013+
// Path: model/attributes/inp.json
4014+
4015+
/**
4016+
* The value of the recorded Interaction to Next Paint (INP) web vital `inp`
4017+
*
4018+
* Attribute Value Type: `number` {@link INP_TYPE}
4019+
*
4020+
* Contains PII: false
4021+
*
4022+
* Attribute defined in OTEL: No
4023+
*
4024+
* Aliases: {@link BROWSER_WEB_VITAL_INP_VALUE} `browser.web_vital.inp.value`
4025+
*
4026+
* @deprecated Use {@link BROWSER_WEB_VITAL_INP_VALUE} (browser.web_vital.inp.value) instead - The INP web vital is now recorded as a browser.web_vital.inp.value attribute.
4027+
* @example 200
4028+
*/
4029+
export const INP = 'inp';
4030+
4031+
/**
4032+
* Type for {@link INP} inp
4033+
*/
4034+
export type INP_TYPE = number;
4035+
40134036
// Path: model/attributes/jvm/jvm__gc__action.json
40144037

40154038
/**
@@ -9110,6 +9133,7 @@ export const ATTRIBUTE_TYPE: Record<string, AttributeType> = {
91109133
[HTTP_URL]: 'string',
91119134
[HTTP_USER_AGENT]: 'string',
91129135
[ID]: 'string',
9136+
[INP]: 'double',
91139137
[JVM_GC_ACTION]: 'string',
91149138
[JVM_GC_NAME]: 'string',
91159139
[JVM_MEMORY_POOL_NAME]: 'string',
@@ -9540,6 +9564,7 @@ export type AttributeName =
95409564
| typeof HTTP_URL
95419565
| typeof HTTP_USER_AGENT
95429566
| typeof ID
9567+
| typeof INP
95439568
| typeof JVM_GC_ACTION
95449569
| typeof JVM_GC_NAME
95459570
| typeof JVM_MEMORY_POOL_NAME
@@ -10263,7 +10288,7 @@ export const ATTRIBUTE_METADATA: Record<AttributeName, AttributeMetadata> = {
1026310288
},
1026410289
isInOtel: false,
1026510290
example: 200,
10266-
aliases: [],
10291+
aliases: [INP],
1026710292
sdks: ['javascript-browser'],
1026810293
},
1026910294
[BROWSER_WEB_VITAL_LCP_VALUE]: {
@@ -11832,6 +11857,21 @@ export const ATTRIBUTE_METADATA: Record<AttributeName, AttributeMetadata> = {
1183211857
example: 'f47ac10b58cc4372a5670e02b2c3d479',
1183311858
sdks: ['php-laravel'],
1183411859
},
11860+
[INP]: {
11861+
brief: 'The value of the recorded Interaction to Next Paint (INP) web vital',
11862+
type: 'double',
11863+
pii: {
11864+
isPii: 'false',
11865+
},
11866+
isInOtel: false,
11867+
example: 200,
11868+
deprecation: {
11869+
replacement: 'browser.web_vital.inp.value',
11870+
reason: 'The INP web vital is now recorded as a browser.web_vital.inp.value attribute.',
11871+
},
11872+
aliases: [BROWSER_WEB_VITAL_INP_VALUE],
11873+
sdks: ['javascript-browser'],
11874+
},
1183511875
[JVM_GC_ACTION]: {
1183611876
brief: 'Name of the garbage collector action.',
1183711877
type: 'string',
@@ -14360,6 +14400,7 @@ export type Attributes = {
1436014400
[HTTP_URL]?: HTTP_URL_TYPE;
1436114401
[HTTP_USER_AGENT]?: HTTP_USER_AGENT_TYPE;
1436214402
[ID]?: ID_TYPE;
14403+
[INP]?: INP_TYPE;
1436314404
[JVM_GC_ACTION]?: JVM_GC_ACTION_TYPE;
1436414405
[JVM_GC_NAME]?: JVM_GC_NAME_TYPE;
1436514406
[JVM_MEMORY_POOL_NAME]?: JVM_MEMORY_POOL_NAME_TYPE;

model/attributes/inp.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"key": "inp",
3+
"brief": "The value of the recorded Interaction to Next Paint (INP) web vital",
4+
"type": "double",
5+
"pii": {
6+
"key": "false"
7+
},
8+
"is_in_otel": false,
9+
"example": 200.0,
10+
"sdks": ["javascript-browser"],
11+
"deprecation": {
12+
"replacement": "browser.web_vital.inp.value",
13+
"reason": "The INP web vital is now recorded as a browser.web_vital.inp.value attribute.",
14+
"_status": "backfill"
15+
},
16+
"alias": ["browser.web_vital.inp.value"]
17+
}

python/src/sentry_conventions/attributes.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ class _AttributeNamesMeta(type):
137137
"HTTP_TARGET",
138138
"HTTP_URL",
139139
"HTTP_USER_AGENT",
140+
"INP",
140141
"LCP",
141142
"METHOD",
142143
"NET_HOST_IP",
@@ -2331,6 +2332,18 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
23312332
Example: "f47ac10b58cc4372a5670e02b2c3d479"
23322333
"""
23332334

2335+
# Path: model/attributes/inp.json
2336+
INP: Literal["inp"] = "inp"
2337+
"""The value of the recorded Interaction to Next Paint (INP) web vital
2338+
2339+
Type: float
2340+
Contains PII: false
2341+
Defined in OTEL: No
2342+
Aliases: browser.web_vital.inp.value
2343+
DEPRECATED: Use browser.web_vital.inp.value instead - The INP web vital is now recorded as a browser.web_vital.inp.value attribute.
2344+
Example: 200
2345+
"""
2346+
23342347
# Path: model/attributes/jvm/jvm__gc__action.json
23352348
JVM_GC_ACTION: Literal["jvm.gc.action"] = "jvm.gc.action"
23362349
"""Name of the garbage collector action.
@@ -6425,6 +6438,20 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
64256438
example="f47ac10b58cc4372a5670e02b2c3d479",
64266439
sdks=["php-laravel"],
64276440
),
6441+
"inp": AttributeMetadata(
6442+
brief="The value of the recorded Interaction to Next Paint (INP) web vital",
6443+
type=AttributeType.DOUBLE,
6444+
pii=PiiInfo(isPii=IsPii.FALSE),
6445+
is_in_otel=False,
6446+
example=200,
6447+
deprecation=DeprecationInfo(
6448+
replacement="browser.web_vital.inp.value",
6449+
reason="The INP web vital is now recorded as a browser.web_vital.inp.value attribute.",
6450+
status=DeprecationStatus.BACKFILL,
6451+
),
6452+
aliases=["browser.web_vital.inp.value"],
6453+
sdks=["javascript-browser"],
6454+
),
64286455
"jvm.gc.action": AttributeMetadata(
64296456
brief="Name of the garbage collector action.",
64306457
type=AttributeType.STRING,
@@ -8425,6 +8452,7 @@ class ATTRIBUTE_NAMES(metaclass=_AttributeNamesMeta):
84258452
"http.url": str,
84268453
"http.user_agent": str,
84278454
"id": str,
8455+
"inp": float,
84288456
"jvm.gc.action": str,
84298457
"jvm.gc.name": str,
84308458
"jvm.memory.pool.name": str,

shared/deprecated_attributes.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,23 @@
4949
"example": "ENOENT: no such file or directory",
5050
"sdks": ["javascript-node"]
5151
},
52+
{
53+
"key": "inp",
54+
"brief": "The value of the recorded Interaction to Next Paint (INP) web vital",
55+
"type": "double",
56+
"pii": {
57+
"key": "false"
58+
},
59+
"is_in_otel": false,
60+
"example": 200,
61+
"sdks": ["javascript-browser"],
62+
"deprecation": {
63+
"replacement": "browser.web_vital.inp.value",
64+
"reason": "The INP web vital is now recorded as a browser.web_vital.inp.value attribute.",
65+
"_status": "backfill"
66+
},
67+
"alias": ["browser.web_vital.inp.value"]
68+
},
5269
{
5370
"key": "lcp",
5471
"brief": "The value of the recorded Largest Contentful Paint (LCP) web vital",

0 commit comments

Comments
 (0)