File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
packages/node/src/integrations/node-fetch Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -127,8 +127,6 @@ export class SentryNodeFetchInstrumentation extends InstrumentationBase<SentryNo
127127 return ;
128128 }
129129
130- addedHeaders [ 'sentry-trace' ] = `${ addedHeaders [ 'sentry-trace' ] } -ZZZZ` ;
131-
132130 // We do not want to overwrite existing headers here
133131 // If the core UndiciInstrumentation is registered, it will already have set the headers
134132 // We do not want to add any then
@@ -137,9 +135,9 @@ export class SentryNodeFetchInstrumentation extends InstrumentationBase<SentryNo
137135 Object . entries ( addedHeaders )
138136 . filter ( ( [ k ] ) => {
139137 // If the header already exists, we do not want to set it again
140- return ! requestHeaders . includes ( ` ${ k } :` ) ;
138+ return ! requestHeaders . includes ( k ) ;
141139 } )
142- . forEach ( headers => requestHeaders . push ( ...headers ) ) ;
140+ . forEach ( keyValuePair => requestHeaders . push ( ...keyValuePair ) ) ;
143141 } else {
144142 const requestHeaders = request . headers ;
145143 request . headers += Object . entries ( addedHeaders )
You can’t perform that action at this time.
0 commit comments