Skip to content

Commit ecc9230

Browse files
committed
fix it
1 parent 5266890 commit ecc9230

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/browser/src/tracing/browserTracingIntegration.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,9 @@ export function startBrowserTracingPageLoadSpan(
458458
* This will only do something if a browser tracing integration has been setup.
459459
*/
460460
export function startBrowserTracingNavigationSpan(client: Client, spanOptions: StartSpanOptions): Span | undefined {
461+
// Reset this to ensure we start a new trace, instead of continuing the last pageload/navigation trace
461462
getIsolationScope().setPropagationContext({ traceId: generateTraceId() });
463+
getCurrentScope().setPropagationContext({ traceId: generateTraceId() });
462464

463465
client.emit('startNavigationSpan', spanOptions);
464466
getCurrentScope().setTransactionName(spanOptions.name);

0 commit comments

Comments
 (0)