Skip to content

feat(replay): Allow to define sample rates on SDK level #6387

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
Dec 2, 2022

Conversation

mydea
Copy link
Member

@mydea mydea commented Dec 2, 2022

As defined in #6351, we want to introduce new top-level options in the browser SDK for replay configuration.

The deprecation of old options will follow in a separate PR.

Note that while working on this, I noticed a potential issue for test flakiness. Namely, that because setupOnce of the integration is only called once (the first time), and in there we call replay.start(), the very first test can start out with a started replay, while all following ones wont. I have streamlined this by ensuring we call .stop() in tests after initialising replay. (which does not affect any test as of now, but in other PRs I experiences some flakiness sometimes)

@mydea mydea added the Package: replay Issues related to the Sentry Replay SDK label Dec 2, 2022
@mydea mydea requested review from billyvg and Lms24 December 2, 2022 09:00
@mydea mydea self-assigned this Dec 2, 2022
@mydea mydea force-pushed the fn/replay-sample-rate branch from da73203 to 3cff119 Compare December 2, 2022 10:29
@mydea mydea force-pushed the fn/replay-sample-rate branch 4 times, most recently from 187d663 to cef5fca Compare December 2, 2022 13:18
@github-actions
Copy link
Contributor

github-actions bot commented Dec 2, 2022

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 19.57 KB (-0.01% 🔽)
@sentry/browser - ES5 CDN Bundle (minified) 60.59 KB (0%)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 18.36 KB (0%)
@sentry/browser - ES6 CDN Bundle (minified) 54.15 KB (0%)
@sentry/browser - Webpack (gzipped + minified) 20.12 KB (0%)
@sentry/browser - Webpack (minified) 65.75 KB (0%)
@sentry/react - Webpack (gzipped + minified) 20.14 KB (0%)
@sentry/nextjs Client - Webpack (gzipped + minified) 45.95 KB (0%)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 26.41 KB (0%)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 24.85 KB (+0.01% 🔺)
@sentry/replay index.js 0 B (removed)
@sentry/replay - Webpack (gzipped + minified) 37.13 KB (+0.21% 🔺)
@sentry/replay - Webpack (minified) 0 B (removed)
@sentry/replay ES6 CDN Bundle (gzipped + minified) 41.63 KB (added)

@mydea mydea force-pushed the fn/replay-sample-rate branch from 0c210c5 to 4e8fd1f Compare December 2, 2022 13:50
@mydea mydea merged commit 3f14a57 into master Dec 2, 2022
@mydea mydea deleted the fn/replay-sample-rate branch December 2, 2022 14:13
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.

2 participants