Skip to content
This repository was archived by the owner on Jun 13, 2023. It is now read-only.

Commit ac79676

Browse files
ten-ayuAndrew Yushkevich
and
Andrew Yushkevich
authored
fix: implement correct fetch call for HTTP queries with body (#79)
Co-authored-by: Andrew Yushkevich <[email protected]>
1 parent 8bb49c3 commit ac79676

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/web/src/instrumentation/fetchInstrumentation.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class EpsagonFetchInstrumentation extends FetchInstrumentation {
3333
const createdSpan = plugin._createSpan(url, options);
3434
if (!createdSpan) {
3535
diag.debug('span was not created. apply the original function');
36-
return original.apply(this, [url, options]);
36+
return original.apply(this, [input, init]);
3737
}
3838
const spanData = plugin._prepareSpanData(url);
3939
function endSpanOnError(span, error) {

0 commit comments

Comments
 (0)