File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
packages/node/src/integrations/http Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -268,12 +268,10 @@ export class SentryHttpInstrumentation extends InstrumentationBase<SentryHttpIns
268
268
? getMergedHeadersForRequestOptions ( url , optionsParsed , instrumentation . _propagationDecisionMap )
269
269
: undefined ;
270
270
271
- // If we are not proapgating traces, we skip touching the args for the request at all
272
- const request = mergedHeaders
273
- ? ( original . apply ( this , getOutgoingRequestArgsWithHeaders ( argsCopy , mergedHeaders ) ) as ReturnType <
274
- typeof http . request
275
- > )
276
- : ( original . apply ( this , args ) as ReturnType < typeof http . request > ) ;
271
+ // If we are not proapgating traces, we skip touching the args for the request at all
272
+ const request : ReturnType < typeof http . request > = mergedHeaders
273
+ ? original . apply ( this , getOutgoingRequestArgsWithHeaders ( argsCopy , mergedHeaders ) )
274
+ : original . apply ( this , args ) ;
277
275
278
276
request . prependListener ( 'response' , ( response : http . IncomingMessage ) => {
279
277
const _breadcrumbs = instrumentation . getConfig ( ) . breadcrumbs ;
You can’t perform that action at this time.
0 commit comments