Skip to content

fix(integrations): Mark ExtraErrorData as already normalized #5053

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
May 9, 2022

Conversation

lforst
Copy link
Contributor

@lforst lforst commented May 9, 2022

This fixes the depth option of the ExtraErrorData integration by skipping normalization of extra error data in subsequent normalization runs.

Previously, the client option normalizeDepth unintentionally had precedence over the integration's depth option. It truncated entire event objects up to the specified normalizeDepth, including the extra error data, even though the user specified a specific depth for the extra error data using the integration's options. With this PR, extra error data will now always be normalized to the depth specified by the ExtraErrorData depth option.

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

@github-actions
Copy link
Contributor

github-actions bot commented May 9, 2022

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 18.76 KB (-6.87% 🔽)
@sentry/browser - ES5 CDN Bundle (minified) 58.58 KB (-9.35% 🔽)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 17.55 KB (-6.97% 🔽)
@sentry/browser - ES6 CDN Bundle (minified) 52.76 KB (-9% 🔽)
@sentry/browser - Webpack (gzipped + minified) 19.21 KB (-17.35% 🔽)
@sentry/browser - Webpack (minified) 62.12 KB (-23.99% 🔽)
@sentry/react - Webpack (gzipped + minified) 19.23 KB (-17.39% 🔽)
@sentry/nextjs Client - Webpack (gzipped + minified) 42.75 KB (-11.04% 🔽)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 24.42 KB (-6.34% 🔽)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 23 KB (-6.08% 🔽)

@lforst lforst force-pushed the lforst-extra-error-data-respect-depth-option branch 4 times, most recently from d122d29 to 87bcd3c Compare May 9, 2022 11:09
@lforst lforst marked this pull request as ready for review May 9, 2022 11:10
@lforst lforst force-pushed the lforst-extra-error-data-respect-depth-option branch from 5117312 to 87bcd3c Compare May 9, 2022 13:39
Base automatically changed from lforst-normalization-skip-flag to 7.x May 9, 2022 15:45
@lforst lforst force-pushed the lforst-extra-error-data-respect-depth-option branch from 87bcd3c to cffd0f4 Compare May 9, 2022 15:47
@lforst lforst merged commit 904b2d3 into 7.x May 9, 2022
@lforst lforst deleted the lforst-extra-error-data-respect-depth-option branch May 9, 2022 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants