Skip to content

feat(replay): Remove default sample rates for replay #6878

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
Jan 23, 2023

Conversation

mydea
Copy link
Member

@mydea mydea commented Jan 19, 2023

Previously, they were:

  • replaysSessionSampleRate: 0.1
  • replaysOnErrorSampleRate: 1.0

Now, you have to explicitly set the sample rates, otherwise they default to 0.

Closes #6775

@mydea mydea added the Package: replay Issues related to the Sentry Replay SDK label Jan 19, 2023
@mydea mydea self-assigned this Jan 19, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jan 19, 2023

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 19.83 KB (-0.01% 🔽)
@sentry/browser - ES5 CDN Bundle (minified) 61.48 KB (0%)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 18.5 KB (-0.02% 🔽)
@sentry/browser - ES6 CDN Bundle (minified) 54.79 KB (0%)
@sentry/browser - Webpack (gzipped + minified) 20.22 KB (0%)
@sentry/browser - Webpack (minified) 66.19 KB (0%)
@sentry/react - Webpack (gzipped + minified) 20.25 KB (0%)
@sentry/nextjs Client - Webpack (gzipped + minified) 47.48 KB (0%)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 26.75 KB (-0.02% 🔽)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 25.03 KB (-0.01% 🔽)
@sentry/replay ES6 CDN Bundle (gzipped + minified) 43.2 KB (-0.15% 🔽)
@sentry/replay - Webpack (gzipped + minified) 37.92 KB (-0.3% 🔽)
@sentry/browser + @sentry/tracing + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 60.54 KB (+0.04% 🔺)

@mydea mydea force-pushed the fn/replay-default-sample-rate branch from 32f014f to 3470213 Compare January 20, 2023 10:51
@bruno-garcia
Copy link
Member

Once shipped, please amend the docs: https://docs.sentry.io/platforms/javascript/session-replay/configuration/

Previously, they were:

* `replaysSessionSampleRate: 0.1`
* `replaysOnErrorSampleRate: 1.0`

Now, you have to explicitly set the sample rates, otherwise they default to 0.
@mydea mydea force-pushed the fn/replay-default-sample-rate branch from 3470213 to 70a81be Compare January 23, 2023 15:58
@mydea mydea merged commit f2e00b1 into master Jan 23, 2023
@mydea mydea deleted the fn/replay-default-sample-rate branch January 23, 2023 17:44
@ankurk91
Copy link
Contributor

Breaking change in minor release 👏

@mydea
Copy link
Member Author

mydea commented Jan 24, 2023

Breaking change in minor release 👏

Replay is in beta and still subject to change. We are still tweaking some options and details, so the usual semver stability guarantees do not apply yet!

@ankurk91
Copy link
Contributor

Okay thanks

lucas-zimerman added a commit to lucas-zimerman/sentry-javascript that referenced this pull request Feb 13, 2023
getsentry#6878 altered on version 7.33.0 the default to 0 but the docs still point as if the default was 1.0
Lms24 pushed a commit that referenced this pull request Feb 13, 2023
#6878 altered on version 7.33.0 the default to 0 but the docs still point as if the default was 1.0
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.

Remove default replay sample rates
4 participants