Skip to content

Commit 653a5d8

Browse files
committed
fix it actually
1 parent 34644f4 commit 653a5d8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/node/src/integrations/node-fetch/SentryNodeFetchInstrumentation.ts

+2-4
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)