Skip to content

Commit 8bd8243

Browse files
authored
feat: Add ensureNoCircularStructures experiment to help debug serialization bugs (#3776)
1 parent f624f44 commit 8bd8243

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/core/src/baseclient.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,12 @@ export abstract class BaseClient<B extends Backend, O extends Options> implement
389389
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
390390
normalized.contexts.trace = event.contexts.trace;
391391
}
392+
393+
const { _experiments = {} } = this.getOptions();
394+
if (_experiments.ensureNoCircularStructures) {
395+
return normalize(normalized);
396+
}
397+
392398
return normalized;
393399
}
394400

0 commit comments

Comments
 (0)