Title: Add replay DSC only when replay is in `session` mode · Issue #8013 · getsentry/sentry-javascript · GitHub
Open Graph Title: Add replay DSC only when replay is in `session` mode · Issue #8013 · getsentry/sentry-javascript
X Title: Add replay DSC only when replay is in `session` mode · Issue #8013 · getsentry/sentry-javascript
Description: Currently, we set the replay_id on the DSC whenever the replay is enabled. However, due to recent changes to error sampling, you'll basically always have an active session, unless both sample rates are 0, because we always buffer. This m...
Open Graph Description: Currently, we set the replay_id on the DSC whenever the replay is enabled. However, due to recent changes to error sampling, you'll basically always have an active session, unless both sample rates...
X Description: Currently, we set the replay_id on the DSC whenever the replay is enabled. However, due to recent changes to error sampling, you'll basically always have an active session, unless both sample r...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/8013
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add replay DSC only when replay is in `session` mode","articleBody":"Currently, we set the replay_id on the DSC whenever the replay is enabled. However, due to recent changes to error sampling, you'll basically _always_ have an active session, unless both sample rates are 0, because we always buffer. This means that when replay is enabled, and we want to sample all transactions that have a replay_id, all transactions would always be sampled (more or less).\r\n\r\nI would propose to only add the replay_id to the DSC when the session is in `session` recording mode. This should ensure that it is only set on DSC when the session is actually being sent to Sentry (when an error happens, we swap the session to `session` mode, so it would then also be set afterwards). However, that means that any transaction created before in buffer mode would not have the DSC set. But I don't really see a good way to prevent this (ideas welcome!).","author":{"url":"https://github.com/mydea","@type":"Person","name":"mydea"},"datePublished":"2023-05-02T13:10:35Z","url":"https://github.com/getsentry/sentry-javascript/issues/8013"}
| 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:aa58e59a-d413-b918-83f3-d706b47720c4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C2B6:1E6BB:2F00AC:402DEF:6B04B9EA |
| html-safe-nonce | f9da1da9d86643f0024d766fbc86fc4c80518b5c053bb6d330142bc37ae7c2e4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMkI2OjFFNkJCOjJGMDBBQzo0MDJERUY6NkIwNEI5RUEiLCJ2aXNpdG9yX2lkIjoiMzYwMzI3ODY4ODk3Mzc5Nzg2NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7c198c71e2503a0cf941333fc70ae2e795d79a6a1042eb9f64aa16deece410d4 |
| hovercard-subject-tag | issue:1692398350 |
| 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/8013/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a2341934069f4ab1327168c84aef08580e702357523b31b349d23c15abcc1f9d/getsentry/sentry-javascript/issues/8013 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a2341934069f4ab1327168c84aef08580e702357523b31b349d23c15abcc1f9d/getsentry/sentry-javascript/issues/8013 |
| og:image:alt | Currently, we set the replay_id on the DSC whenever the replay is enabled. However, due to recent changes to error sampling, you'll basically always have an active session, unless both sample rates... |
| 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 | 85dd75377eb77313206b8fc108bcee6a3a029286d94bf32bf9b4426e4d92e0c4 |
| 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 | 0d64fa748a2bab9a5b587a967ac4da1cfa8da6dd |
| ui-target | canary-2 |
| 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