File tree Expand file tree Collapse file tree 4 files changed +5
-6
lines changed
dev-packages/cloudflare-integration-tests/suites/tracing/propagation Expand file tree Collapse file tree 4 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ interface Env {
88}
99
1010class MyDurableObjectBase extends DurableObject < Env > {
11- async fetch ( request : Request ) {
11+ async fetch ( _request : Request ) {
1212 return new Response ( 'DO is fine' ) ;
1313 }
1414}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ interface Env {
55}
66
77const myWorker = {
8- async fetch ( request : Request ) {
8+ async fetch ( _request : Request ) {
99 return new Response ( 'Hello from another worker!' ) ;
1010 } ,
1111} ;
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ interface Env {
99}
1010
1111class MyDurableObjectBase extends DurableObject < Env > {
12- async fetch ( request : Request ) {
12+ async fetch ( _request : Request ) {
1313 return new Response ( 'DO is fine' ) ;
1414 }
1515}
Original file line number Diff line number Diff line change @@ -287,11 +287,10 @@ export function _INTERNAL_getTracingHeadersForFetchRequest(
287287 'sentry-trace' : string ;
288288 baggage : string | undefined ;
289289 traceparent ?: string ;
290- } = {
291- ...originalHeaders ,
290+ } = Object . assign ( { } , originalHeaders , {
292291 'sentry-trace' : ( existingSentryTraceHeader as string | undefined ) ?? sentryTrace ,
293292 baggage : newBaggageHeaders . length > 0 ? newBaggageHeaders . join ( ',' ) : undefined ,
294- } ;
293+ } ) ;
295294
296295 if ( propagateTraceparent && traceparent && ! existingTraceparentHeader ) {
297296 newHeaders . traceparent = traceparent ;
You can’t perform that action at this time.
0 commit comments