Skip to content

chore(instrumentation-fetch): add utils from sdk-web package#6630

Draft
david-luna wants to merge 2 commits into
open-telemetry:mainfrom
david-luna:web-utils-port
Draft

chore(instrumentation-fetch): add utils from sdk-web package#6630
david-luna wants to merge 2 commits into
open-telemetry:mainfrom
david-luna:web-utils-port

Conversation

@david-luna
Copy link
Copy Markdown
Contributor

@david-luna david-luna commented Apr 24, 2026

Which problem is this PR solving?

Refs: #6591

Short description of the changes

  • copy utils from @opentelemetry/sdk-trace-web to @opentelemetry/instrumentation-fetch

Type of change

Please delete options that are not relevant.

  • Refactor

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

  • Unit tests

Checklist:

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

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 24, 2026

Codecov Report

❌ Patch coverage is 68.94410% with 50 lines in your changes missing coverage. Please review.
✅ Project coverage is 95.42%. Comparing base (417f2f1) to head (66431bb).
⚠️ Report is 58 commits behind head on main.

Files with missing lines Patch % Lines
...s/opentelemetry-instrumentation-fetch/src/utils.ts 62.50% 48 Missing ⚠️
...s/opentelemetry-instrumentation-fetch/src/fetch.ts 75.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6630      +/-   ##
==========================================
- Coverage   95.66%   95.42%   -0.25%     
==========================================
  Files         375      376       +1     
  Lines       12833    13057     +224     
  Branches     3059     3126      +67     
==========================================
+ Hits        12277    12459     +182     
- Misses        556      598      +42     
Files with missing lines Coverage Δ
...entation-fetch/src/enums/PerformanceTimingNames.ts 100.00% <100.00%> (ø)
...opentelemetry-instrumentation-fetch/src/semconv.ts 100.00% <100.00%> (ø)
packages/opentelemetry-core/src/utils/url.ts 100.00% <ø> (ø)
...s/opentelemetry-instrumentation-fetch/src/fetch.ts 84.64% <75.00%> (+0.06%) ⬆️
...s/opentelemetry-instrumentation-fetch/src/utils.ts 73.63% <62.50%> (-15.38%) ⬇️

... and 2 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

browser Browser-specific additions or benefits

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants