Skip to content

Commit b8792da

Browse files
author
Luca Forstner
committed
Fix http module?
1 parent c3467bf commit b8792da

File tree

1 file changed

+2
-2
lines changed
  • packages/node/src/integrations

1 file changed

+2
-2
lines changed

packages/node/src/integrations/http.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ function _createWrappedRequestMethodFactory(
277277
...scope.getPropagationContext(),
278278
};
279279

280-
const sentryTraceHeader = requestSpan
281-
? spanToTraceHeader(requestSpan)
280+
const sentryTraceHeader = transaction
281+
? spanToTraceHeader(transaction)
282282
: generateSentryTraceHeader(traceId, spanId, sampled);
283283

284284
const sentryBaggageHeader = dynamicSamplingContextToSentryBaggageHeader(

0 commit comments

Comments
 (0)