Skip to content

Commit

Permalink
fix: removing traceparent from cachekey should not remove traceparent…
Browse files Browse the repository at this point in the history
… from request
  • Loading branch information
Jeffrey committed Apr 18, 2024
1 parent 134a59d commit 8db8355
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/src/server/lib/incremental-cache/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ export class IncrementalCache implements IncrementalCacheType {
const headers =
typeof (init.headers || {}).keys === 'function'
? Object.fromEntries(init.headers as Headers)
: Object.assign(init.headers || {}, {})
: Object.assign({}, init.headers)

if ('traceparent' in headers) delete headers['traceparent']

Expand Down

0 comments on commit 8db8355

Please sign in to comment.