Title: Ensure replays do not have filtered out errors attached · Issue #6285 · getsentry/sentry-javascript · GitHub
Open Graph Title: Ensure replays do not have filtered out errors attached · Issue #6285 · getsentry/sentry-javascript
X Title: Ensure replays do not have filtered out errors attached · Issue #6285 · getsentry/sentry-javascript
Description: Replays attach errors that happened while the replay was running via errorIds. This is basically a global event processor that adds the ID of each error event it gets to the errorIds set, which in turn ends up being sent to Sentry. Howev...
Open Graph Description: Replays attach errors that happened while the replay was running via errorIds. This is basically a global event processor that adds the ID of each error event it gets to the errorIds set, which in ...
X Description: Replays attach errors that happened while the replay was running via errorIds. This is basically a global event processor that adds the ID of each error event it gets to the errorIds set, which in ...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/6285
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Ensure replays do not have filtered out errors attached","articleBody":"Replays attach errors that happened while the replay was running via `errorIds`.\r\nThis is basically a global event processor that adds the ID of each error event it gets to the `errorIds` set, which in turn ends up being sent to Sentry.\r\n\r\nHowever, turns out that in reality sometimes this includes IDs of error events that do not actually exist on Sentry, leading to weird behavior.\r\n\r\nAfter some investigation, the most probable cause of this is that some of the error events are sampled away _after_ they have been \"consumed\" by the replay event processor. Some reasons that could lead to this are:\r\n\r\n* The deduplication integration removes them\r\n* They are dropped due to rate limiting\r\n* They are dropped by the host app via a custom `beforeSend` hook or another global event processor\r\n* They are dropped when being sent over the network (e.g. failed HTTP request, ...)\r\n\r\nIn order to fix (or at least, mostly fix), all but the last of these issues, we should introduce some logic that _removes_ eventIds that have been dropped.\r\n\r\n## Alternatives that have been investigated\r\n\r\nSome other ideas we thought about, but ultimately discarded:\r\n\r\n* Introduce an `afterSend` hook: This may not work, as an error could be send at the same time or after a replay was sent. \r\n* Introduce some custom hooks for this that are always called: Tricky and expands public API surface noticeably.\r\n* Monkey patch `beforeSend`: Can be done, but potentially tricky, as this is/can be user configured.\r\n\r\n## Proposed solution\r\n\r\nWe should monkey patch `recordDroppedEvent` on the client. This is called when an event is dropped either because of returning `null` from `beforeSend` / a global event processor, or when dropped due to rate limiting. ","author":{"url":"https://github.com/mydea","@type":"Person","name":"mydea"},"datePublished":"2022-11-24T12:31:18Z","url":"https://github.com/getsentry/sentry-javascript/issues/6285"}
| 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:addaee82-3b95-3eb3-ef7d-3cbb3002fab3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B2A8:25A901:3CD68D:52219D:6B04387E |
| html-safe-nonce | 699bae380b2972c2a2995a425bc19dcf0066f631e1c7652962b6856ec0074567 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMkE4OjI1QTkwMTozQ0Q2OEQ6NTIyMTlEOjZCMDQzODdFIiwidmlzaXRvcl9pZCI6IjY4MjM0NjYxODc2Mzc0MDU4MjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c7389e0d3912d4abe1b51635554b175e82041d6cde96530b1988d778826515e2 |
| hovercard-subject-tag | issue:1463274891 |
| 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/6285/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3055f804137a728930256b53c6822ae08c8fb4e997878eaef576a07f13c8a1ed/getsentry/sentry-javascript/issues/6285 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3055f804137a728930256b53c6822ae08c8fb4e997878eaef576a07f13c8a1ed/getsentry/sentry-javascript/issues/6285 |
| og:image:alt | Replays attach errors that happened while the replay was running via errorIds. This is basically a global event processor that adds the ID of each error event it gets to the errorIds set, which in ... |
| 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 | 9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64 |
| 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 | 06dc448a76fe4751ac1db26524aefa3aa3e889a8 |
| 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