Skip to content

Commit 87e9b54

Browse files
authored
Update ExtraErrorData depth description (#5021)
JavaScript SDK: Updates `ExtraErrorData` `depth` option description to not mention a workaround for the global `normalizeDepth` option.
1 parent f127691 commit 87e9b54

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

src/includes/configuration/extra-error-data/javascript.mdx

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,14 @@ import { ExtraErrorData as ExtraErrorDataIntegration } from "@sentry/integration
44

55
Sentry.init({
66
dsn: "___PUBLIC_DSN___",
7-
integrations: [new ExtraErrorDataIntegration(
8-
{
7+
integrations: [
8+
new ExtraErrorDataIntegration({
99
// Limit of how deep the object serializer should go. Anything deeper than limit will
1010
// be replaced with standard Node.js REPL notation of [Object], [Array], [Function] or
1111
// a primitive value. Defaults to 3.
12-
// When changing this value, make sure to update `normalizeDepth` of the whole SDK
13-
// to `depth + 1` in order to get it serialized properly - https://docs.sentry.io/platforms/javascript/configuration/options/#normalize-depth
14-
depth: number;
15-
}
16-
)],
12+
depth: number,
13+
}),
14+
],
1715
});
1816
```
1917

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

3331
Sentry.init({
3432
dsn: "___PUBLIC_DSN___",
35-
integrations: [new Sentry.Integrations.ExtraErrorData(
36-
{
33+
integrations: [
34+
new Sentry.Integrations.ExtraErrorData({
3735
// Limit of how deep the object serializer should go. Anything deeper than limit will
3836
// be replaced with standard Node.js REPL notation of [Object], [Array], [Function] or
3937
// a primitive value. Defaults to 3.
40-
// When changing this value, make sure to update `normalizeDepth` of the whole SDK
41-
// to `depth + 1` in order to get it serialized properly - https://docs.sentry.io/platforms/javascript/configuration/options/#normalize-depth
42-
depth: number;
43-
}
44-
)],
38+
depth: number,
39+
})
40+
],
4541
});
4642
```

0 commit comments

Comments
 (0)