Skip to content

Commit 6733b4e

Browse files
authored
feat(JS): Add normalizeMaxBreadth option (#4844)
This documents the new `normalizeMaxBreadth` option added to JS-based SDKs in getsentry/sentry-javascript#4689, which controls how many properties or entries any given object or array will contain after normalization.
1 parent ccb0eaa commit 6733b4e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/platforms/common/configuration/options.mdx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,15 @@ Maximum number of characters a single value can have before it will be truncated
352352

353353
<ConfigKey name="normalize-depth" supported={["javascript", "node"]}>
354354

355-
Sentry SDKs normalize any contextual data to a given depth. Any keys containing data with a structure deeper than this will be trimmed and marked using its type instead (`[Object]` or `[Array]`), without walking the tree any further. By default, walking is performed `3` levels deep.
355+
Sentry SDKs normalize any contextual data to a given depth. Any data beyond this depth will be trimmed and marked using its type instead (`[Object]` or `[Array]`), without walking the tree any further. By default, walking is performed three levels deep.
356+
357+
</ConfigKey>
358+
359+
<ConfigKey name="normalize-max-breadth" supported={["javascript", "node"]} notSupported={["react-native", "electron"]}>
360+
361+
_(New in version 6.19.1)_
362+
363+
This is the maximum number of properties or entries that will be included in any given object or array when the SDK is normalizing contextual data. Any data beyond this depth will be dropped. (defaults to 1000)
356364

357365
</ConfigKey>
358366

0 commit comments

Comments
 (0)