Skip to content

Commit c7784c3

Browse files
committed
Stop reüsing a used request
1 parent f159e34 commit c7784c3

File tree

1 file changed

+1
-1
lines changed
  • packages/otel/src/instrumentations

1 file changed

+1
-1
lines changed

packages/otel/src/instrumentations/fetch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export class FetchInstrumentation implements Instrumentation {
123123
return tracer.withActiveSpan('fetch', async (span) => {
124124
const request = new Request(resource, options)
125125
this.annotateFromRequest(span, request)
126-
const response = await originalFetch(resource, options)
126+
const response = await originalFetch(request, options)
127127
this.annotateFromResponse(span, response)
128128
return response
129129
})

0 commit comments

Comments
 (0)