Skip to content

Commit c6a5370

Browse files
committed
fix(replay): Ensure we normalize breadcrumbs to a max. depth
1 parent 7896c68 commit c6a5370

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/replay/src/coreHandlers/handleScope.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { Breadcrumb, Scope } from '@sentry/types';
2+
import { normalize } from '@sentry/utils';
23

34
import type { ReplayContainer } from '../types';
45
import { createBreadcrumb } from '../util/createBreadcrumb';

packages/replay/src/coreHandlers/util/addBreadcrumbEvent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function addBreadcrumbEvent(replay: ReplayContainer, breadcrumb: Breadcru
2727
timestamp: (breadcrumb.timestamp || 0) * 1000,
2828
data: {
2929
tag: 'breadcrumb',
30-
payload: normalize(breadcrumb),
30+
payload: normalize(breadcrumb, 10),
3131
},
3232
});
3333

0 commit comments

Comments
 (0)