Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lforst committed Feb 5, 2024
1 parent 38b8ea3 commit 8c32f47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Expand Up @@ -3,6 +3,7 @@ import {
addTracingExtensions,
captureException,
getClient,
getCurrentScope,
handleCallbackErrors,
startSpanManual,
withIsolationScope,
Expand Down Expand Up @@ -59,6 +60,7 @@ export function wrapGenerationFunctionWithSentry<F extends (...args: any[]) => a

const propagationContext = commonObjectToPropagationContext(headers, incomingPropagationContext);
isolationScope.setPropagationContext(propagationContext);
getCurrentScope().setPropagationContext(propagationContext);

return startSpanManual(
{
Expand Down
2 changes: 2 additions & 0 deletions packages/nextjs/src/common/wrapServerComponentWithSentry.ts
Expand Up @@ -2,6 +2,7 @@ import {
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
addTracingExtensions,
captureException,
getCurrentScope,
handleCallbackErrors,
startSpanManual,
withIsolationScope,
Expand Down Expand Up @@ -51,6 +52,7 @@ export function wrapServerComponentWithSentry<F extends (...args: any[]) => any>

const propagationContext = commonObjectToPropagationContext(context.headers, incomingPropagationContext);
isolationScope.setPropagationContext(propagationContext);
getCurrentScope().setPropagationContext(propagationContext);

return startSpanManual(
{
Expand Down

0 comments on commit 8c32f47

Please sign in to comment.