Skip to content

Commit

Permalink
feat: Add ensureNoCircularStructures experiment to help debug seriali…
Browse files Browse the repository at this point in the history
…zation bugs (#3776)
  • Loading branch information
kamilogorek committed Jul 7, 2021
1 parent f624f44 commit 8bd8243
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/core/src/baseclient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,12 @@ export abstract class BaseClient<B extends Backend, O extends Options> implement
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
normalized.contexts.trace = event.contexts.trace;
}

const { _experiments = {} } = this.getOptions();
if (_experiments.ensureNoCircularStructures) {
return normalize(normalized);
}

return normalized;
}

Expand Down

0 comments on commit 8bd8243

Please sign in to comment.