[WASM] Capture wasm module build_ids and enrich error events - #4920
Draft
ImaneLargou wants to merge 1 commit into
Draft
[WASM] Capture wasm module build_ids and enrich error events#4920ImaneLargou wants to merge 1 commit into
ImaneLargou wants to merge 1 commit into
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 <noreply@anthropic.com>
|
I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
|
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.
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.
Motivation
Changes
Test instructions
Checklist