Title: Remove default replay sample rates · Issue #6775 · getsentry/sentry-javascript · GitHub
Open Graph Title: Remove default replay sample rates · Issue #6775 · getsentry/sentry-javascript
X Title: Remove default replay sample rates · Issue #6775 · getsentry/sentry-javascript
Description: I would like to get rid of the default sample rates we have defined, because IMHO it can be confusing. Currently, we have the following default values: replaysSessionSampleRate: 0.1, replaysOnErrorSampleRate: 1 While these values are goo...
Open Graph Description: I would like to get rid of the default sample rates we have defined, because IMHO it can be confusing. Currently, we have the following default values: replaysSessionSampleRate: 0.1, replaysOnError...
X Description: I would like to get rid of the default sample rates we have defined, because IMHO it can be confusing. Currently, we have the following default values: replaysSessionSampleRate: 0.1, replaysOnError...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/6775
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Remove default replay sample rates","articleBody":"I would like to get rid of the default sample rates we have defined, because IMHO it can be confusing. Currently, we have the following default values: \r\n\r\n```\r\nreplaysSessionSampleRate: 0.1, \r\nreplaysOnErrorSampleRate: 1\r\n```\r\n\r\nWhile these values are good defaults, the problem with defaults is that it is \"magic\" - e.g. if I set this config:\r\n\r\n```js\r\nSentry.init({\r\n replaysOnErrorSampleRate: 1\r\n})\r\n```\r\n\r\nit is IMHO not clear that we will still capture \"regular\" replays 10% of the time. The same way vice versa, with the current setup replays will by default ALWAYS be captured, meaning each and every user will have the impact of replay running, even if I configure e.g.:\r\n\r\n```js\r\nSentry.init({\r\n replaysSessionSampleRate: 0.1\r\n})\r\n```\r\n\r\ndue to the error sample rate being 100% by default.\r\nWe also don't have this for other rates, so I'd propose to default them to 0. And just make sure in all docs to always provide both values as defaults to copy-paste.","author":{"url":"https://github.com/mydea","@type":"Person","name":"mydea"},"datePublished":"2023-01-16T08:14:23Z","url":"https://github.com/getsentry/sentry-javascript/issues/6775"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:631cb6d1-0f1f-beee-87cb-8b7e752d2b8a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9248:392C58:77BCF8:9E6CFF:6B04E867 |
| html-safe-nonce | 5c3d0d0a9f24f6ca6e6ffcfe1e64d40ef8bf5ae9cda4a6de443e5f9fb0d20bc0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjQ4OjM5MkM1ODo3N0JDRjg6OUU2Q0ZGOjZCMDRFODY3IiwidmlzaXRvcl9pZCI6IjEzMTgwNjMwMzIyNzI3NTM2NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5d8ab2112ade12756fef3bf9ba8ef601de31838108b5a6980b8180fe0e323ded |
| hovercard-subject-tag | issue:1534485146 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/6775/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ada9cdb700088e8563b3438f95a109f96058f49015429633cbb23aa2affc6854/getsentry/sentry-javascript/issues/6775 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ada9cdb700088e8563b3438f95a109f96058f49015429633cbb23aa2affc6854/getsentry/sentry-javascript/issues/6775 |
| og:image:alt | I would like to get rid of the default sample rates we have defined, because IMHO it can be confusing. Currently, we have the following default values: replaysSessionSampleRate: 0.1, replaysOnError... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mydea |
| hostname | github.com |
| expected-hostname | github.com |
| None | f3851aad500d8e8dce736722ddc6fa9596e17d9fce3c53581eba968664c0bc32 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e29c922455fd8137f27e1cfcdf6a1e8b920b1926 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width