Skip to content

Commit e488f51

Browse files
committed
fix tracing
1 parent 35c9184 commit e488f51

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/tracing-internal/src/browser/browserTracingIntegration.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,9 @@ export const browserTracingIntegration = ((_options: Partial<BrowserTracingOptio
334334
startTimestamp: browserPerformanceTimeOrigin ? browserPerformanceTimeOrigin / 1000 : undefined,
335335
op: 'pageload',
336336
origin: 'auto.pageload.browser',
337-
metadata: { source: 'url' },
337+
attributes: {
338+
[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'url',
339+
},
338340
};
339341
startBrowserTracingPageLoadSpan(client, context);
340342
}
@@ -361,7 +363,9 @@ export const browserTracingIntegration = ((_options: Partial<BrowserTracingOptio
361363
name: WINDOW.location.pathname,
362364
op: 'navigation',
363365
origin: 'auto.navigation.browser',
364-
metadata: { source: 'url' },
366+
attributes: {
367+
[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'url',
368+
},
365369
};
366370

367371
startBrowserTracingNavigationSpan(client, context);

0 commit comments

Comments
 (0)