Skip to content

Commit 1e370da

Browse files
committed
RUM-16985: Add browser WASM error metadata
1 parent d6ba7f7 commit 1e370da

2 files changed

Lines changed: 56 additions & 0 deletions

File tree

samples/rum-events/wasm-error.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"type": "error",
3+
"date": 1591284175342,
4+
"application": {
5+
"id": "ac8218cf-498b-4d33-bd44-151095959547"
6+
},
7+
"session": {
8+
"id": "cacbf45c-3a05-48ce-b066-d76349460599",
9+
"type": "user"
10+
},
11+
"source": "browser",
12+
"view": {
13+
"id": "623d50fd-75cf-4025-97d2-e51ff94171f6",
14+
"referrer": "",
15+
"url": "https://example.com/"
16+
},
17+
"error": {
18+
"id": "b83a5d82-cdd1-468d-9bc9-3aa9e54d957a",
19+
"message": "unreachable",
20+
"source": "source",
21+
"stack": "RuntimeError: unreachable\n at wasm-function[42]:0x10",
22+
"source_type": "browser+wasm",
23+
"wasm_modules": [
24+
{
25+
"url": "https://example.com/module.wasm",
26+
"build_id": "abcd"
27+
}
28+
]
29+
},
30+
"_dd": {
31+
"format_version": 2
32+
}
33+
}

schemas/rum/error-schema.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@
121121
"enum": [
122122
"android",
123123
"browser",
124+
"browser+wasm",
124125
"ios",
125126
"react-native",
126127
"flutter",
@@ -275,6 +276,28 @@
275276
},
276277
"readOnly": true
277278
},
279+
"wasm_modules": {
280+
"type": "array",
281+
"description": "WebAssembly modules available for stack trace symbolication.",
282+
"items": {
283+
"type": "object",
284+
"description": "A WebAssembly module loaded by the application.",
285+
"required": ["url", "build_id"],
286+
"properties": {
287+
"url": {
288+
"type": "string",
289+
"description": "URL identifying the WebAssembly module.",
290+
"readOnly": true
291+
},
292+
"build_id": {
293+
"type": "string",
294+
"description": "Build ID used to identify the WebAssembly debug symbols.",
295+
"readOnly": true
296+
}
297+
}
298+
},
299+
"readOnly": true
300+
},
278301
"was_truncated": {
279302
"type": "boolean",
280303
"description": "A boolean value saying if any of the stack traces was truncated due to minification.",

0 commit comments

Comments
 (0)