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

Commit

Permalink
fix: implement correct fetch call for HTTP queries with body (#79)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Yushkevich <[email protected]>
  • Loading branch information
ten-ayu and Andrew Yushkevich authored Feb 16, 2022
1 parent 8bb49c3 commit ac79676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web/src/instrumentation/fetchInstrumentation.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class EpsagonFetchInstrumentation extends FetchInstrumentation {
const createdSpan = plugin._createSpan(url, options);
if (!createdSpan) {
diag.debug('span was not created. apply the original function');
return original.apply(this, [url, options]);
return original.apply(this, [input, init]);
}
const spanData = plugin._prepareSpanData(url);
function endSpanOnError(span, error) {
Expand Down

0 comments on commit ac79676

Please sign in to comment.