Title: Handle replay events in a queue · Issue #6639 · getsentry/sentry-javascript · GitHub
Open Graph Title: Handle replay events in a queue · Issue #6639 · getsentry/sentry-javascript
X Title: Handle replay events in a queue · Issue #6639 · getsentry/sentry-javascript
Description: Replay events depend a lot on the order they are sent, as the recordings are basically incremental. this means that a whole bunch of issues can arise when one or multiple payloads are lost/not sent in the correct order. Some related issu...
Open Graph Description: Replay events depend a lot on the order they are sent, as the recordings are basically incremental. this means that a whole bunch of issues can arise when one or multiple payloads are lost/not sent...
X Description: Replay events depend a lot on the order they are sent, as the recordings are basically incremental. this means that a whole bunch of issues can arise when one or multiple payloads are lost/not sent...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/6639
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Handle replay events in a queue","articleBody":"Replay events depend a lot on the order they are sent, as the recordings are basically incremental.\r\nthis means that a whole bunch of issues can arise when one or multiple payloads are lost/not sent in the correct order.\r\n\r\nSome related issues:\r\n\r\n* https://github.com/getsentry/sentry-javascript/issues/6520\r\n* https://github.com/getsentry/sentry-javascript/issues/6533\r\n* https://github.com/getsentry/sentry-javascript/issues/6502\r\n\r\nI propose to instead change how we send replays by start to use a queue of outstanding events instead. This could work something like this:\r\n\r\n1. When a segment is ready to be sent, it is added to the bottom of the queue.\r\n2. Each e.g. second, we try to send the top item of the queue. If it fails, it remains on the top of the queue, else it is removed.\r\n\r\nThis means that we can always ensure that all events are sent in order.\r\n\r\nThere are two additional wrinkles with this:\r\n\r\na) We need to make sure to send _all_ queue items when the user is leaving the page\r\nb) We may want to store unsent queue items in session storage, so we can recover them after e.g. the user was offline\r\n\r\nThese two are a bit contradictory, as if we send everything on unload, we can't be sure that is has been sent, so we can't really decide if we need to remove it from a local storage 🤔 ","author":{"url":"https://github.com/mydea","@type":"Person","name":"mydea"},"datePublished":"2023-01-03T13:31:18Z","url":"https://github.com/getsentry/sentry-javascript/issues/6639"}
| 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:8ef3d432-8c10-f160-22d5-abc6792d3dfa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8338:1F2F:35D1D3:4883EF:6B043012 |
| html-safe-nonce | a21f94ec239a691fea7ebe4e105c621fc8d443a7197e3ea99e40cb73549ecc5e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzM4OjFGMkY6MzVEMUQzOjQ4ODNFRjo2QjA0MzAxMiIsInZpc2l0b3JfaWQiOiI4MDgyNDgxNzAzODA3MTAyOTk0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d419a75c527a2855779fab8fc50ad767e7e0b6263e190cb815ed3e8a06c03972 |
| hovercard-subject-tag | issue:1517399644 |
| 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/6639/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8bdb0a1f50046feb4e2e22511bf3dc54b2308c5724ba496c5a0f650003bcee11/getsentry/sentry-javascript/issues/6639 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8bdb0a1f50046feb4e2e22511bf3dc54b2308c5724ba496c5a0f650003bcee11/getsentry/sentry-javascript/issues/6639 |
| og:image:alt | Replay events depend a lot on the order they are sent, as the recordings are basically incremental. this means that a whole bunch of issues can arise when one or multiple payloads are lost/not sent... |
| 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 | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| 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 | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| 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