wasm plugin - #5006
Draft
BenoitZugmeyer wants to merge 14 commits into
Draft
Conversation
Intercepts WebAssembly.instantiate / instantiateStreaming at SDK
script-load time to record (url, build_id) per loaded module, including
lazily-loaded modules. On error capture, attaches error.wasm_modules[]
and sets source_type='browser+wasm' so the backend can dispatch wasm
symbolication.
- New wasmModules/wasmModuleTracking.ts: hooks all four WebAssembly
entry points; reads build_id via a minimal custom-section parser;
registry stays live for lazy module loads
- New wasmModules/wasmBinaryParser.ts: walks wasm binary sections,
extracts build_id custom section or falls back to external_debug_info
- errorCollection: populates error.wasm_modules[] and flips source_type
to 'browser+wasm' when any module is registered
- rawRumEvent.types: adds wasm_modules?: Array<{url, build_id}> to
RawRumErrorEvent
- main.ts: installs tracking synchronously at script-load time to close
the race window before DD_RUM.init()'s deferred microtask
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…-experiment # Conflicts: # package.json # packages/browser-core/src/domain/telemetry/telemetryEvent.types.ts # yarn.lock
…-experiment # Conflicts: # package.json # packages/browser-logs/src/domain/runtimeError/runtimeErrorCollection.spec.ts # packages/browser-logs/src/rawLogsEvent.types.ts # yarn.lock
|
BenoitZugmeyer
force-pushed
the
benoit/push-wykrxolrskzy
branch
from
September 2, 2026 14:08
89e9868 to
8be692f
Compare
Bundles Sizes Evolution
|
BenoitZugmeyer
force-pushed
the
benoit/push-wykrxolrskzy
branch
from
September 2, 2026 14:23
8be692f to
af63b97
Compare
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.
Motivation
Changes
Test instructions
Checklist