File tree 1 file changed +2
-4
lines changed
packages/node/src/integrations/node-fetch
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
127
127
return ;
128
128
}
129
129
130
- addedHeaders [ 'sentry-trace' ] = `${ addedHeaders [ 'sentry-trace' ] } -ZZZZ` ;
131
-
132
130
// We do not want to overwrite existing headers here
133
131
// If the core UndiciInstrumentation is registered, it will already have set the headers
134
132
// We do not want to add any then
@@ -137,9 +135,9 @@ export class SentryNodeFetchInstrumentation extends InstrumentationBase<SentryNo
137
135
Object . entries ( addedHeaders )
138
136
. filter ( ( [ k ] ) => {
139
137
// If the header already exists, we do not want to set it again
140
- return ! requestHeaders . includes ( ` ${ k } :` ) ;
138
+ return ! requestHeaders . includes ( k ) ;
141
139
} )
142
- . forEach ( headers => requestHeaders . push ( ...headers ) ) ;
140
+ . forEach ( keyValuePair => requestHeaders . push ( ...keyValuePair ) ) ;
143
141
} else {
144
142
const requestHeaders = request . headers ;
145
143
request . headers += Object . entries ( addedHeaders )
You can’t perform that action at this time.
0 commit comments