Title: [Replay] Make replay sample rates top-level config · Issue #6351 · getsentry/sentry-javascript · GitHub
Open Graph Title: [Replay] Make replay sample rates top-level config · Issue #6351 · getsentry/sentry-javascript
X Title: [Replay] Make replay sample rates top-level config · Issue #6351 · getsentry/sentry-javascript
Description: Problem Statement Currently, replay sample rates are configured directly in the integration: Sentry.init({ sampleRate: 0.5, tracesSampleRate: 0.1, profilesSampleRate: 0.25, integrations: [ new Replay({ sessionSampleRate: 0.1, errorSample...
Open Graph Description: Problem Statement Currently, replay sample rates are configured directly in the integration: Sentry.init({ sampleRate: 0.5, tracesSampleRate: 0.1, profilesSampleRate: 0.25, integrations: [ new Repl...
X Description: Problem Statement Currently, replay sample rates are configured directly in the integration: Sentry.init({ sampleRate: 0.5, tracesSampleRate: 0.1, profilesSampleRate: 0.25, integrations: [ new Repl...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/6351
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Replay] Make replay sample rates top-level config","articleBody":"### Problem Statement\r\n\r\nCurrently, replay sample rates are configured directly in the integration:\r\n\r\n```js\r\nSentry.init({\r\n sampleRate: 0.5,\r\n tracesSampleRate: 0.1,\r\n profilesSampleRate: 0.25,\r\n integrations: [\r\n new Replay({\r\n sessionSampleRate: 0.1,\r\n errorSampleRate: 1.0\r\n })\r\n});\r\n```\r\n\r\nThis is inconsistent.\r\n\r\n### Solution Brainstorm\r\n\r\nWe want to move these options to the top level:\r\n\r\n```js\r\nSentry.init({\r\n sampleRate: 0.5,\r\n tracesSampleRate: 0.1,\r\n profilesSampleRate: 0.25,\r\n replaysSampleRate: 0.5,\r\n replaysOnErrorSampleRate: 1.0,\r\n integrations: [\r\n new Replay()\r\n});\r\n```\r\n\r\nThe goal is, for now, to deprecate the \"old\" options directly on Replay and remove them in a later release.\r\n\r\n## Steps\r\n\r\n- [x] Add new top-level options\r\n- [x] Deprecate configuration in integration","author":{"url":"https://github.com/mydea","@type":"Person","name":"mydea"},"datePublished":"2022-11-30T16:21:58Z","url":"https://github.com/getsentry/sentry-javascript/issues/6351"}
| 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:cdfd7798-5f2c-4303-8441-6547d3b7f3f6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ABD4:1D4BD6:4F49BA:6F3E62:6B04446F |
| html-safe-nonce | 4dc9b74cb41cdf9c7f4a592ea053bd937c4369aed63d9b6f518a2af7069f9839 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQkQ0OjFENEJENjo0RjQ5QkE6NkYzRTYyOjZCMDQ0NDZGIiwidmlzaXRvcl9pZCI6IjMwMzg2NjA1NjA2NDM4NjE2MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 70e76dcd107d119190a6f9e439be4f8c4d0920e8404e3d8f7ad1c046bbe68823 |
| hovercard-subject-tag | issue:1469899816 |
| 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/6351/issue_layout |
| twitter:image | https://opengraph.githubassets.com/71a347bc132c883e7f8a7eb60fa80484b06e2e0fb6fdc6a7b0edb6b114fb6b26/getsentry/sentry-javascript/issues/6351 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/71a347bc132c883e7f8a7eb60fa80484b06e2e0fb6fdc6a7b0edb6b114fb6b26/getsentry/sentry-javascript/issues/6351 |
| og:image:alt | Problem Statement Currently, replay sample rates are configured directly in the integration: Sentry.init({ sampleRate: 0.5, tracesSampleRate: 0.1, profilesSampleRate: 0.25, integrations: [ new Repl... |
| 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 | d4495c3631faba668036f176d1f5946901c5172efd73a6edb984029e7d4f8e46 |
| 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 | 9ac4337fb7c6a5846cdfdb1a04f154d3c33ebc77 |
| 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