diff --git a/packages/node/src/integrations/anr/worker.ts b/packages/node/src/integrations/anr/worker.ts index 354cea514618..b5f45fc6fcb3 100644 --- a/packages/node/src/integrations/anr/worker.ts +++ b/packages/node/src/integrations/anr/worker.ts @@ -104,11 +104,13 @@ function applyDebugMeta(event: Event): void { if (filenameToDebugId.size > 0) { const images: DebugImage[] = []; - for (const [filename, debugId] of filenameToDebugId.entries()) { + for (const [filename, debug_id] of filenameToDebugId.entries()) { + const code_file = options.appRootPath ? normalizeUrlToBase(filename, options.appRootPath) : filename; + images.push({ type: 'sourcemap', - code_file: filename, - debug_id: debugId, + code_file, + debug_id, }); } event.debug_meta = { images };