Skip to content

Commit f216716

Browse files
Lms24claude
andcommitted
chore(deps): Bump @sentry/conventions to 0.24.0
Use the newly released `BROWSER_WEB_VITAL_INP_TARGET`, `BROWSER_WEB_VITAL_INP_INTERACTION_TYPE`, `SENTRY_IS_LOCALHOST` and `UI_RESOLVE` constants in place of hard-coded strings, and drop the TODOs that were waiting on this release. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent b375a52 commit f216716

40 files changed

Lines changed: 61 additions & 51 deletions

File tree

‎dev-packages/browser-integration-tests/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"@sentry/browser": "11.0.0",
6464
"@sentry/replay": "11.0.0",
6565
"@sentry/opentelemetry": "11.0.0",
66-
"@sentry/conventions": "0.23.0",
66+
"@sentry/conventions": "0.24.0",
6767
"@supabase/supabase-js": "2.109.0",
6868
"axios": "1.18.0",
6969
"babel-loader": "^10.1.1",

‎dev-packages/cloudflare-integration-tests/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"@cloudflare/workers-types": "^4.20260426.0",
3434
"@cloudflare/workers-types-v5": "npm:@cloudflare/workers-types@5.20260710.1",
3535
"@sentry-internal/test-utils": "11.0.0",
36-
"@sentry/conventions": "0.23.0",
36+
"@sentry/conventions": "0.24.0",
3737
"eslint-plugin-regexp": "^3.1.0",
3838
"prisma": "6.15.0",
3939
"vite": "7.3.5",

‎dev-packages/node-integration-tests/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
},
109109
"devDependencies": {
110110
"@opentelemetry/instrumentation-http": "0.220.0",
111-
"@sentry/conventions": "0.23.0",
111+
"@sentry/conventions": "0.24.0",
112112
"@sentry-internal/test-utils": "11.0.0",
113113
"@types/amqplib": "^0.10.5",
114114
"@types/node-cron": "^3.0.11",

‎packages/angular/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"dependencies": {
2424
"@sentry/browser": "11.0.0",
2525
"@sentry/core": "11.0.0",
26-
"@sentry/conventions": "^0.23.0",
26+
"@sentry/conventions": "^0.24.0",
2727
"tslib": "^2.4.1"
2828
},
2929
"devDependencies": {

‎packages/astro/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"dependencies": {
5454
"@sentry/browser": "11.0.0",
5555
"@sentry/core": "11.0.0",
56-
"@sentry/conventions": "^0.23.0",
56+
"@sentry/conventions": "^0.24.0",
5757
"@sentry/node": "11.0.0",
5858
"@sentry/server-runtime-injection": "11.0.0",
5959
"@sentry/server-utils": "11.0.0",

‎packages/aws-serverless/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"access": "public"
5757
},
5858
"dependencies": {
59-
"@sentry/conventions": "^0.23.0",
59+
"@sentry/conventions": "^0.24.0",
6060
"@sentry/core": "11.0.0",
6161
"@sentry/node": "11.0.0",
6262
"@sentry/server-runtime-injection": "11.0.0",

‎packages/browser-utils/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
},
3535
"dependencies": {
3636
"@sentry/core": "11.0.0",
37-
"@sentry/conventions": "^0.23.0",
37+
"@sentry/conventions": "^0.24.0",
3838
"web-vitals": "^6.1.1"
3939
},
4040
"scripts": {

‎packages/browser-utils/src/performance/interactions.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {
2+
BROWSER_WEB_VITAL_INP_TARGET,
23
HTTP_ROUTE,
34
ROUTER_NAVIGATION_ROUTE_ID,
45
SENTRY_IDLE_SPAN_FINISH_REASON,
@@ -254,7 +255,7 @@ function trackInteractionsAsSpans(client: Client): void {
254255
attributes: {
255256
[SENTRY_OP]: UI_INTERACTION_CLICK,
256257
[SENTRY_ORIGIN]: 'auto.browser.interactions',
257-
...(selector && selector !== UNKNOWN_ELEMENT_NAME && { 'browser.web_vital.inp.target': selector }),
258+
...(selector && selector !== UNKNOWN_ELEMENT_NAME && { [BROWSER_WEB_VITAL_INP_TARGET]: selector }),
258259
},
259260
};
260261

‎packages/browser-utils/src/web-vitals/spans.ts‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,12 @@ import {
3030
addLcpInstrumentationHandler,
3131
} from '../instrumentation/performanceObserver';
3232
import type { LargestContentfulPaint, LayoutShift } from './emitSpan';
33-
import { BROWSER_NAVIGATION_TYPE, UI_COMPONENT_NAME } from '@sentry/conventions/attributes';
33+
import {
34+
BROWSER_NAVIGATION_TYPE,
35+
BROWSER_WEB_VITAL_INP_INTERACTION_TYPE,
36+
BROWSER_WEB_VITAL_INP_TARGET,
37+
UI_COMPONENT_NAME,
38+
} from '@sentry/conventions/attributes';
3439
import { _emitWebVitalSpan } from './emitSpan';
3540
import { isValidLcpMetric } from './lcp';
3641
import { listenForWebVitalReportEvents } from './reportEvents';
@@ -437,9 +442,8 @@ export function _sendInpSpan(
437442
// say whether there was an interaction to describe. These attributes can: they are only set for
438443
// what was actually observed. The name no longer holds the selector either, now that it is the
439444
// component name or the op's fallback under span streaming.
440-
// TODO: use the `@sentry/conventions` constants once getsentry/sentry-conventions#641 is released.
441-
selector && selector !== UNKNOWN_ELEMENT_NAME && (attributes['browser.web_vital.inp.target'] = selector);
442-
entryInteractionType && (attributes['browser.web_vital.inp.interaction_type'] = entryInteractionType);
445+
selector && selector !== UNKNOWN_ELEMENT_NAME && (attributes[BROWSER_WEB_VITAL_INP_TARGET] = selector);
446+
entryInteractionType && (attributes[BROWSER_WEB_VITAL_INP_INTERACTION_TYPE] = entryInteractionType);
443447

444448
if (componentName) {
445449
attributes[UI_COMPONENT_NAME] = componentName;

‎packages/browser/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
},
4040
"dependencies": {
4141
"@sentry/browser-utils": "11.0.0",
42-
"@sentry/conventions": "^0.23.0",
42+
"@sentry/conventions": "^0.24.0",
4343
"@sentry/feedback": "11.0.0",
4444
"@sentry/replay": "11.0.0",
4545
"@sentry/replay-canvas": "11.0.0",

0 commit comments

Comments
 (0)