Skip to content
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
24 changes: 10 additions & 14 deletions src/includes/configuration/extra-error-data/javascript.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,14 @@ import { ExtraErrorData as ExtraErrorDataIntegration } from "@sentry/integration

Sentry.init({
dsn: "___PUBLIC_DSN___",
integrations: [new ExtraErrorDataIntegration(
{
integrations: [
new ExtraErrorDataIntegration({
// 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;
}
)],
depth: number,
}),
],
});
```

Expand All @@ -32,15 +30,13 @@ Sentry.init({

Sentry.init({
dsn: "___PUBLIC_DSN___",
integrations: [new Sentry.Integrations.ExtraErrorData(
{
integrations: [
new Sentry.Integrations.ExtraErrorData({
// 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;
}
)],
depth: number,
})
],
});
```