Skip to content

docs(js): Add note regarding normalizeDepth to ExtraErrorData #4247

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/includes/configuration/extra-error-data/javascript.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ Sentry.init({
dsn: "___PUBLIC_DSN___",
integrations: [new ExtraErrorDataIntegration(
{
// limit of how deep the object serializer should go. Anything deeper than limit will
// Limit of how deep the object serializer should go. Anything deeper than limit will
// be replaced with standard Node.js REPL notation of [Object], [Array], [Function] or
// a primitive value. Defaults to 3.
// When changing this value, make sure to update `normalizeDepth` of the whole SDK
// to `depth + 1` in order to get it serialized properly - https://docs.sentry.io/platforms/javascript/configuration/options/#normalize-depth
depth: number;
}
)],
Expand All @@ -32,9 +34,11 @@ Sentry.init({
dsn: "___PUBLIC_DSN___",
integrations: [new Sentry.Integrations.ExtraErrorData(
{
// limit of how deep the object serializer should go. Anything deeper than limit will
// Limit of how deep the object serializer should go. Anything deeper than limit will
// be replaced with standard Node.js REPL notation of [Object], [Array], [Function] or
// a primitive value. Defaults to 3.
// When changing this value, make sure to update `normalizeDepth` of the whole SDK
// to `depth + 1` in order to get it serialized properly - https://docs.sentry.io/platforms/javascript/configuration/options/#normalize-depth
depth: number;
}
)],
Expand Down