Skip to content

Commit 6e5cb41

Browse files
authored
fix(replay): Ensure we normalize scope breadcrumbs to max. depth to avoid circular ref (#7915)
1 parent 100369e commit 6e5cb41

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ export function addBreadcrumbEvent(replay: ReplayContainer, breadcrumb: Breadcru
2727
timestamp: (breadcrumb.timestamp || 0) * 1000,
2828
data: {
2929
tag: 'breadcrumb',
30-
payload: normalize(breadcrumb),
30+
// normalize to max. 10 depth and 1_000 properties per object
31+
payload: normalize(breadcrumb, 10, 1_000),
3132
},
3233
});
3334

0 commit comments

Comments
 (0)