Skip to content

Commit 6bac717

Browse files
committed
fix it
1 parent 373ff2c commit 6bac717

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: packages/browser/src/tracing/browserTracingIntegration.ts

+2
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)