Skip to content

Commit 4ff4066

Browse files
author
Luca Forstner
authored
fix(core): Only call applyDebugMetadata for error events (#7824)
1 parent 943df92 commit 4ff4066

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/core/src/utils/prepareEvent.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ export function prepareEvent(
3737

3838
applyClientOptions(prepared, options);
3939
applyIntegrationsMetadata(prepared, integrations);
40-
applyDebugMetadata(prepared, options.stackParser);
40+
41+
// Only apply debug metadata to error events.
42+
if (event.type === undefined) {
43+
applyDebugMetadata(prepared, options.stackParser);
44+
}
4145

4246
// If we have scope given to us, use it as the base for further modifications.
4347
// This allows us to prevent unnecessary copying of data if `captureContext` is not provided.

0 commit comments

Comments
 (0)