fix(sdk-trace-web): remove browsing context only api dependency on utils #2714
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-trace-web should be compatible with web environments like web worker.
Short description of the changes
window
references in sdk-trace-web/src.How Has This Been Tested?
Existing tests with karma should continue to work. Worker integration tests should be introduced with #2659 or new karma configurations (for a full run of existing test suites on workers).
https://github.com/open-telemetry/opentelemetry-js/tree/main/selenium-tests is referencing experimental packages and it is not linked to the versions in the local repository, so testing with it is quite awkward. I'll continue to split it into two parts in #2659. However, if it is located in the
experimental/
subdirectory, it can not be linked to the latest un-published version ofsdk-trace-web
, and we can't get it passed without the changes in this PR :(. So I'm submitting this patch and hope to land it first to continue the setups in #2659.Checklist:
Unit tests have been added