Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
lforst committed Sep 9, 2024
1 parent 6d4505f commit 773bb9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nextjs/src/common/wrapServerComponentWithSentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ export function wrapServerComponentWithSentry<F extends (...args: any[]) => any>
const requestTraceId = getActiveSpan()?.spanContext().traceId;
const isolationScope = commonObjectToIsolationScope(context.headers);

const headersDict = context.headers ? winterCGHeadersToDict(context.headers) : undefined;

const activeSpan = getActiveSpan();
if (activeSpan) {
const rootSpan = getRootSpan(activeSpan);
Expand All @@ -51,6 +49,8 @@ export function wrapServerComponentWithSentry<F extends (...args: any[]) => any>
rootSpan.setAttribute('sentry.rsc', true);
}

const headersDict = context.headers ? winterCGHeadersToDict(context.headers) : undefined;

isolationScope.setSDKProcessingMetadata({
request: {
headers: headersDict,
Expand Down

0 comments on commit 773bb9c

Please sign in to comment.