Skip to content

Commit fa427de

Browse files
committed
ref(replay-internal): Add mechanism to error caught by replayIntegration in debug mode
1 parent 47342f3 commit fa427de

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/replay-internal/src/util/logger.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,12 @@ function makeReplayDebugLogger(): ReplayDebugLogger {
7474
coreDebug.error(PREFIX, error);
7575

7676
if (_capture) {
77-
captureException(error);
77+
captureException(error, {
78+
mechanism: {
79+
handled: false,
80+
type: 'replay',
81+
},
82+
});
7883
} else if (_trace) {
7984
// No need for a breadcrumb if `_capture` is enabled since it should be
8085
// captured as an exception

0 commit comments

Comments
 (0)