chore: move sdk-trace-web utils to web-common - #7058
Open
david-luna wants to merge 8 commits into
Open
Conversation
Pull request dashboard statusWaiting on maintainers · refreshed 2026-09-08 08:43 UTC Merge when ready. Status above doesn't look right?
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7058 +/- ##
==========================================
- Coverage 95.00% 94.66% -0.34%
==========================================
Files 407 409 +2
Lines 14342 14543 +201
Branches 3289 3345 +56
==========================================
+ Hits 13625 13767 +142
- Misses 717 776 +59
🚀 New features to boost your workflow:
|
david-luna
marked this pull request as ready for review
September 4, 2026 10:56
pichlermarc
approved these changes
Sep 8, 2026
pichlermarc
left a comment
Member
There was a problem hiding this comment.
the simple move from @opentelemetry/sdk-trace-web to @opentelemetry/web-common looks good.
I'm leaving out any comments about the actual code being moved (the utilities have some confusing signatures for historical reasons) - we can improve that in follow-ups if needed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which problem is this PR solving?
SDK 3.0 will have a single
sdk-tracepackage. Even in the last JS SIG (2026-09-02) it was mentioned a plan to remove thesdk-trace-*packages.fetchandXmlHttpRequestshare code through@opentelemetry/sdk-trace-webpackage. The code is a set of utility functions to operate with resource timing entries and Span events. Keeping that dependency means devs will install the deprecated packages even if the migrate to the new major version.By moving the utils to
@opentelemetry/web-commonwe make thefetchandXmlHttpRequestready for the new SDK version without breaking compatibility.Type of change
Please delete options that are not relevant.
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
web-commonpackageChecklist: