Repository navigation
feat: implement browser APIs that the published types declare - #7140
Merged
overbalance merged 4 commits intoOct 8, 2026
Merged
overbalance merged 4 commits into
overbalance merged 4 commits into
Conversation
overbalance
added a commit
to embrace-io/opentelemetry-js
that referenced
this pull request
Sep 29, 2026
Pull request dashboard statusMerged · refreshed 2026-10-09 00:20 UTC Status above doesn't look right?
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7140 +/- ##
==========================================
- Coverage 95.05% 95.02% -0.03%
==========================================
Files 382 382
Lines 13517 13532 +15
Branches 3126 3126
==========================================
+ Hits 12848 12859 +11
- Misses 669 673 +4
🚀 New features to boost your workflow:
|
This was referenced Sep 29, 2026
overbalance
added a commit
to embrace-io/opentelemetry-js
that referenced
this pull request
Oct 5, 2026
overbalance
force-pushed
the
overbalance/platform-surface-parity
branch
from
October 5, 2026 20:45
d903082 to
cbdf165
Compare
4 tasks done
overbalance
force-pushed
the
overbalance/platform-surface-parity
branch
from
October 7, 2026 18:09
e72d93c to
ad108fe
Compare
overbalance
force-pushed
the
overbalance/platform-surface-parity
branch
from
October 7, 2026 18:11
ad108fe to
ca4cdc1
Compare
overbalance
marked this pull request as ready for review
October 7, 2026 19:05
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.
Summary
Each platform package publishes one set of type declarations, generated from the Node.js barrel. Browser consumers compile against those types, which disagreed with the browser implementation in two places:
isEnabled(), but the browserInstrumentationBasedid not implement it, so a call threw aTypeError. The browser base now tracksenable()anddisable()calls.FetchInstrumentationandXMLHttpRequestInstrumentationoverride it with their_isEnabledflag, which staysfalsewhen patching throws.disableAutoFlushOnDocumentHideexisted only onBatch*ProcessorBrowserOptions, which the published constructor type does not accept, so an object literal that set it failed to compile. The option moves toBatchSpanProcessorOptionsandBatchLogRecordProcessorOptions, and the*BrowserOptionstypes become deprecated aliases.Type of change
How Has This Been Tested?
npm run compilenpm testfor instrumentation, fetch, xhr, sdk-trace and sdk-logs.npm run test:browser: the newisEnabled()browser tests pass.