Skip to content

fix(otlp-exporter-base): avoid use of a wrapped fetch#6353

Merged
david-luna merged 6 commits intoopen-telemetry:mainfrom
david-luna:dluna-suppress-tracing-fetch-transport
Feb 9, 2026
Merged

fix(otlp-exporter-base): avoid use of a wrapped fetch#6353
david-luna merged 6 commits intoopen-telemetry:mainfrom
david-luna:dluna-suppress-tracing-fetch-transport

Conversation

@david-luna
Copy link
Copy Markdown
Contributor

@david-luna david-luna commented Jan 29, 2026

Which problem is this PR solving?

Fixes #6339

Short description of the changes

  • check for __original fetch API in case its wrapped by an instrumentation
  • use that function if present

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Added a new test to test the wrapping scenario

Checklist:

  • Followed the style guidelines of this project
  • Unit tests have been added

@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.50%. Comparing base (f15aa7e) to head (7e6e7d8).
⚠️ Report is 16 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6353      +/-   ##
==========================================
+ Coverage   95.48%   95.50%   +0.01%     
==========================================
  Files         363      365       +2     
  Lines       11564    11609      +45     
  Branches     2669     2677       +8     
==========================================
+ Hits        11042    11087      +45     
  Misses        522      522              
Files with missing lines Coverage Δ
...tlp-exporter-base/src/transport/fetch-transport.ts 91.66% <100.00%> (+0.75%) ⬆️

... and 4 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread experimental/packages/otlp-exporter-base/src/transport/fetch-transport.ts Outdated
@trentm trentm changed the title fix(otlp-exporte-base): avoid use of a wrapped fetch fix(otlp-exporter-base): avoid use of a wrapped fetch Feb 9, 2026
…ransport.ts

Co-authored-by: Marc Pichler <marc.pichler@dynatrace.com>
@david-luna david-luna enabled auto-merge February 9, 2026 18:03
@david-luna david-luna added this pull request to the merge queue Feb 9, 2026
Merged via the queue into open-telemetry:main with commit a0d5c14 Feb 9, 2026
26 of 27 checks passed
@david-luna david-luna deleted the dluna-suppress-tracing-fetch-transport branch February 9, 2026 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[otlp-exporter-base]: fetch transport gets instrumented in browser environment

3 participants