You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(error-tracking): derive debug_id from file content, not a filename Map
The RUM plugin injects a debug_id into every built chunk's own JS
content. error-tracking's sourcemap uploader now extracts that
debug_id back out of each file when it uploads that file's sourcemap,
instead of relying on filename-based coordination between the two
plugins.
Previously, error-tracking got the debug_id from a side-channel Map
that the RUM plugin populated at injection time, keyed by the chunk's
filename. Bundlers (webpack/rspack) rename chunks after injection via
realContentHash, so by the time error-tracking looked the value up by
the chunk's final filename, the key no longer matched — the debug_id
was silently dropped for almost every chunk in a real build.
Instead of coordinating through a filename-keyed Map, error-tracking
now reads each minified file's own content directly and extracts the
debug_id from the ddDebugId literal the RUM plugin already embeds
inside it. This works no matter what renaming the bundler does
afterward, since the debug_id travels with the file's content, not
its name.
0 commit comments