Skip to content
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

feat(JS): Add normalizeMaxBreadth option #4844

Merged
merged 3 commits into from
Mar 22, 2022

Conversation

lobsterkatie
Copy link
Member

@lobsterkatie lobsterkatie commented Mar 16, 2022

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.

Ref: https://getsentry.atlassian.net/browse/WEB-712

@lobsterkatie
Copy link
Member Author

@timfish @marandaneto - FYI for the next time you bump your respective JS SDK dependencies in electron and RN, so you don't forget to add to the "supported" list for this option.

lobsterkatie pushed a commit to getsentry/sentry-javascript that referenced this pull request Mar 16, 2022
This limits the number of properties/elements serialized for an object/array, to protect against huge objects being serialized if users inadvertently log them. To control this, a new `normalizeMaxBreadth` option has been added, which defaults to 1000.

Documented in getsentry/sentry-docs#4844.
@vercel
Copy link

vercel bot commented Mar 16, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/sentry/sentry-docs/9JxFSg1zSF1sYB1dBKL12S7aMt8p
✅ Preview: https://sentry-docs-git-kmclb-document-normalizemaxbreadth.sentry.dev

src/platforms/common/configuration/options.mdx Outdated Show resolved Hide resolved
src/platforms/common/configuration/options.mdx Outdated Show resolved Hide resolved
@lobsterkatie lobsterkatie force-pushed the kmclb-document-normalizeMaxBreadth branch from 5d75755 to d09bb97 Compare March 22, 2022 21:12
@lobsterkatie lobsterkatie enabled auto-merge (squash) March 22, 2022 21:15
@lobsterkatie lobsterkatie merged commit 6733b4e into master Mar 22, 2022
@lobsterkatie lobsterkatie deleted the kmclb-document-normalizeMaxBreadth branch March 22, 2022 21:15
@github-actions github-actions bot locked and limited conversation to collaborators Apr 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants