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

ref(replay): Avoid overwriting user checkoutEveryNms config #6454

Merged
merged 2 commits into from
Dec 7, 2022

Conversation

mydea
Copy link
Member

@mydea mydea commented Dec 7, 2022

This changes how we overwrite checkoutEveryNms config when sampling for errors. This is a bit cleaner and also ensures we do not loose this setting in regular replay sampling if the user specified it. I also extended on the comment for added clarity why this exists.

note: If #6448 is merged first, need to adjust accordingly as that is moved a bit.

@mydea mydea added the Package: replay Issues related to the Sentry Replay SDK label Dec 7, 2022
@mydea mydea requested review from billyvg and Lms24 December 7, 2022 12:56
@mydea mydea self-assigned this Dec 7, 2022
packages/replay/src/replay.ts Outdated Show resolved Hide resolved
@github-actions
Copy link
Contributor

github-actions bot commented Dec 7, 2022

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 19.67 KB (-0.01% 🔽)
@sentry/browser - ES5 CDN Bundle (minified) 60.94 KB (0%)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 18.46 KB (0%)
@sentry/browser - ES6 CDN Bundle (minified) 54.49 KB (0%)
@sentry/browser - Webpack (gzipped + minified) 20.26 KB (0%)
@sentry/browser - Webpack (minified) 66.24 KB (0%)
@sentry/react - Webpack (gzipped + minified) 20.29 KB (0%)
@sentry/nextjs Client - Webpack (gzipped + minified) 47.14 KB (0%)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 26.52 KB (0%)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 24.96 KB (+0.02% 🔺)
@sentry/replay ES6 CDN Bundle (gzipped + minified) 41.79 KB (-0.02% 🔽)
@sentry/replay - Webpack (gzipped + minified) 37.91 KB (-0.02% 🔽)

@mydea mydea force-pushed the fn/avoid-setting-recording-options branch from 1466c2c to 37a81d6 Compare December 7, 2022 13:40
@mydea mydea merged commit 667edd6 into master Dec 7, 2022
@mydea mydea deleted the fn/avoid-setting-recording-options branch December 7, 2022 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: replay Issues related to the Sentry Replay SDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants