Skip to content

Commit 77f610b

Browse files
update span creation
1 parent 9a1b12e commit 77f610b

File tree

1 file changed

+5
-5
lines changed
  • packages/tracing-internal/src/browser/metrics

1 file changed

+5
-5
lines changed

packages/tracing-internal/src/browser/metrics/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable max-lines */
22
import type { IdleTransaction, Transaction } from '@sentry/core';
3-
import { SEMANTIC_ATTRIBUTE_MEASUREMENTS, Span, getActiveTransaction, getClient, setMeasurement } from '@sentry/core';
3+
import { Span, getActiveTransaction, getClient, setMeasurement } from '@sentry/core';
44
import type { Measurements, SpanContext } from '@sentry/types';
55
import { browserPerformanceTimeOrigin, getComponentName, htmlTreeAsString, logger, parseUrl } from '@sentry/utils';
66

@@ -214,13 +214,13 @@ function _trackINP(interactionIdtoRouteNameMapping: InteractionRouteNameMapping)
214214
op: 'ui.interaction.click',
215215
name: htmlTreeAsString(entry.target),
216216
attributes: {
217-
[SEMANTIC_ATTRIBUTE_MEASUREMENTS]: {
218-
inp: { value: metric.value, unit: 'millisecond' },
219-
},
220217
release,
221218
environment,
222219
transaction: routeName,
223-
exclusive_time: metric.value,
220+
},
221+
exclusiveTime: metric.value,
222+
measurements: {
223+
inp: { value: metric.value, unit: 'millisecond' },
224224
},
225225
});
226226
const envelope = span ? createSpanEnvelope([span]) : undefined;

0 commit comments

Comments
 (0)