Skip to content

Commit d55a3c3

Browse files
committed
fix(core): continue trace should adopt the trace id even if there is already an active span
1 parent 1df6ff9 commit d55a3c3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/core/src/tracing/trace.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ export const continueTrace = <V>(
226226
return withScope(scope => {
227227
const propagationContext = propagationContextFromHeaders(sentryTrace, baggage);
228228
scope.setPropagationContext(propagationContext);
229+
_setSpanForScope(scope, undefined);
229230
return callback();
230231
});
231232
};

0 commit comments

Comments
 (0)