Skip to content

Support other WASM symbolication formats #17898

@mmarczell-graphisoft

Description

@mmarczell-graphisoft

Problem Statement

Sentry only supports symbolicating WASM stack traces if the symbol file is uploaded in the DWARF format. However, when building an optimized WASM with Emscripten, the following warning is printed:

em++: warning: running limited binaryen optimizations because DWARF info requested (or indirectly required) [-Wlimited-postlink-optimizations]

Our app is performance sensitive and so we would not like to forgo optimizations for the sake of error reporting.

Solution Brainstorm

Emscripten has an alternative option to export a so-called symbol map file.

https://emscripten.org/docs/tools_reference/emcc.html#emcc-emit-symbol-map

This is a very simple textual format with just the indexes of the wasm functions mapped to their original names. Building with this does not carry the performance penalty. It would be great if Sentry supported this format for symbolication.

If Sentry supported the "source map" format, that would also be helpful as generating that also does not affect optimization.

Additional Context

Tip: React with 👍 to help prioritize this improvement. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions