René's URL Explorer Experiment


Title: feat(replay): Keep min. 30s of data in buffer & worker mode by mydea · Pull Request #7992 · getsentry/sentry-javascript · GitHub

Open Graph Title: feat(replay): Keep min. 30s of data in buffer & worker mode by mydea · Pull Request #7992 · getsentry/sentry-javascript

X Title: feat(replay): Keep min. 30s of data in buffer & worker mode by mydea · Pull Request #7992 · getsentry/sentry-javascript

Description: This re-implements #7025 with a new strategy. It only keeps min. 30s when using the compression worker (without the worker, the same strategy as now is used, only that it will keep up to 30s max). This may be acceptable, I think? We could also try to implement this for the event array buffer as well, but the question is if we want to do that or say "good enough" this way. Probably needs a bit more manual testing as well, but wanted to put this up so we can talk about it at least. Closes #6908

Open Graph Description: This re-implements #7025 with a new strategy. It only keeps min. 30s when using the compression worker (without the worker, the same strategy as now is used, only that it will keep up to 30s max). ...

X Description: This re-implements #7025 with a new strategy. It only keeps min. 30s when using the compression worker (without the worker, the same strategy as now is used, only that it will keep up to 30s max). ...

Opengraph URL: https://github.com/getsentry/sentry-javascript/pull/7992

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:2b484923-9f34-7ba0-d149-c913b02d9b68
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idEC1C:1B5E62:6FCE41:9D16C9:6B044D98
html-safe-noncefdbd98a662d87af33e210982a8b053257b6fe6f2e125fbb7235f88b23921bdad
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzFDOjFCNUU2Mjo2RkNFNDE6OUQxNkM5OjZCMDQ0RDk4IiwidmlzaXRvcl9pZCI6Ijc3MzE5NTc0MDk3NTcwMjM2NDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac9cb3731b6daca0cb18413543d655b13b26353ab035f5c9f9c3e484b664e8975d
hovercard-subject-tagpull_request:1331779728
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/getsentry/sentry-javascript/pull/7992/files
twitter:imagehttps://avatars.githubusercontent.com/u/2411343?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/2411343?s=400&v=4
og:image:altThis re-implements #7025 with a new strategy. It only keeps min. 30s when using the compression worker (without the worker, the same strategy as now is used, only that it will keep up to 30s max). ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None002aa6b95ffa730b0aec436a5c383f536ad677284e60056037fb120afe37b730
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3328572
octolytics-dimension-repository_nwogetsentry/sentry-javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3328572
octolytics-dimension-repository_network_root_nwogetsentry/sentry-javascript
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release059f24c781e3a0d7df3f27a97da0e93fab06ae39
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/pull/7992/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F7992%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F7992%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/pull/7992/files
Reloadhttps://github.com/getsentry/sentry-javascript/pull/7992/files
Reloadhttps://github.com/getsentry/sentry-javascript/pull/7992/files
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues339 (339)https://github.com/getsentry/sentry-javascript/issues
Pull requests55 (55)https://github.com/getsentry/sentry-javascript/pulls
Discussionshttps://github.com/getsentry/sentry-javascript/discussions
Actionshttps://github.com/getsentry/sentry-javascript/actions
Security and quality7 (7)https://github.com/getsentry/sentry-javascript/security
Insightshttps://github.com/getsentry/sentry-javascript/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fgetsentry%2Fsentry-javascript%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgetsentry%2Fsentry-javascript%2Fissues%2Fnew%2Fchoose
mydeahttps://github.com/mydea
develophttps://github.com/getsentry/sentry-javascript/tree/develop
fn/replay-eventBuffer-min-30shttps://github.com/getsentry/sentry-javascript/tree/fn/replay-eventBuffer-min-30s
Conversation 6 https://github.com/getsentry/sentry-javascript/pull/7992
Commits 1 https://github.com/getsentry/sentry-javascript/pull/7992/commits
Checks 0 https://github.com/getsentry/sentry-javascript/pull/7992/checks
Files changed 12 https://github.com/getsentry/sentry-javascript/pull/7992/files
feat(replay): Keep min. 30s of data in buffer & worker mode https://github.com/getsentry/sentry-javascript/pull/7992/files#top
Show all changes 1 commit https://github.com/getsentry/sentry-javascript/pull/7992/files
1018103 feat(replay): Keep min. 30s of data in buffer & worker mode mydea Apr 28, 2023 https://github.com/getsentry/sentry-javascript/pull/7992/commits/1018103e847e1a78ca672e952f3037a823773180
Clear filters https://github.com/getsentry/sentry-javascript/pull/7992/files
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/7992/files
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/7992/files
Compressor.ts https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-c156c7755b83e279af62c21b07d0ca0ad396ea4ff3823d525c4c3e4d7525315c
handleMessage.ts https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-8472e206fb8b258500588bdc01f43a529cf7756a61e0bafbbed448fb851e0271
jest.setup.ts https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-b6b5d49105242c149562565370ae7353ec01a49de89c8985e9a156fc0b9a38ba
constants.ts https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-a50298f7fd59d891b8d96bf72e18092f822cf44d5f4ca45945fc1ea5a2773e4c
EventBufferCompressionWorker.ts https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-1000e15b8a77f61931d83fbfc686f80e9dc3173f7e9bb8687ebf5efc892539e4
EventBufferProxy.ts https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-cb40ce8e24720df8d8947aac9056e33732ee41943debb8c1990f63a2e8f8d3ac
replay.ts https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-37effab960cdba5170b96d00c73bf14c30c6d856a1c94de4f63fe1a06087bb97
types.ts https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-03291ba19141ffd5bac4f1d6c5f97b587b3ce1d93481f165d42a1b2a650d93a9
addEvent.ts https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-eb2e668205a2166d07a517a56c96f48b127f99ee2ffc45e0b5c67b6a4589ac47
errorSampleRate.test.ts https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-21e1216b60c5afa628ab0a10a08bde9474c9e7fffb0094234d2b51baf1626c56
EventBufferArray.test.ts https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-4b116e74393c498bf39668c8dd0f9dd3e4fc8dfc85254446551930cad7e28167
EventBufferCompressionWorker.test.ts https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-5e1b1624c589293c8336fa9ad2a997b11ce9475d03da98ed9acc04d5e79693c8
packages/replay-worker/src/Compressor.tshttps://github.com/getsentry/sentry-javascript/pull/7992/files#diff-c156c7755b83e279af62c21b07d0ca0ad396ea4ff3823d525c4c3e4d7525315c
View file https://github.com/getsentry/sentry-javascript/blob/1018103e847e1a78ca672e952f3037a823773180/packages/replay-worker/src/Compressor.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/7992/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-c156c7755b83e279af62c21b07d0ca0ad396ea4ff3823d525c4c3e4d7525315c
https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-c156c7755b83e279af62c21b07d0ca0ad396ea4ff3823d525c4c3e4d7525315c
https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-c156c7755b83e279af62c21b07d0ca0ad396ea4ff3823d525c4c3e4d7525315c
https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-c156c7755b83e279af62c21b07d0ca0ad396ea4ff3823d525c4c3e4d7525315c
https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-c156c7755b83e279af62c21b07d0ca0ad396ea4ff3823d525c4c3e4d7525315c
packages/replay-worker/src/handleMessage.tshttps://github.com/getsentry/sentry-javascript/pull/7992/files#diff-8472e206fb8b258500588bdc01f43a529cf7756a61e0bafbbed448fb851e0271
View file https://github.com/getsentry/sentry-javascript/blob/1018103e847e1a78ca672e952f3037a823773180/packages/replay-worker/src/handleMessage.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/7992/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-8472e206fb8b258500588bdc01f43a529cf7756a61e0bafbbed448fb851e0271
packages/replay/jest.setup.tshttps://github.com/getsentry/sentry-javascript/pull/7992/files#diff-b6b5d49105242c149562565370ae7353ec01a49de89c8985e9a156fc0b9a38ba
View file https://github.com/getsentry/sentry-javascript/blob/1018103e847e1a78ca672e952f3037a823773180/packages/replay/jest.setup.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/7992/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-b6b5d49105242c149562565370ae7353ec01a49de89c8985e9a156fc0b9a38ba
https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-b6b5d49105242c149562565370ae7353ec01a49de89c8985e9a156fc0b9a38ba
https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-b6b5d49105242c149562565370ae7353ec01a49de89c8985e9a156fc0b9a38ba
https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-b6b5d49105242c149562565370ae7353ec01a49de89c8985e9a156fc0b9a38ba
packages/replay/src/constants.tshttps://github.com/getsentry/sentry-javascript/pull/7992/files#diff-a50298f7fd59d891b8d96bf72e18092f822cf44d5f4ca45945fc1ea5a2773e4c
View file https://github.com/getsentry/sentry-javascript/blob/1018103e847e1a78ca672e952f3037a823773180/packages/replay/src/constants.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/7992/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-a50298f7fd59d891b8d96bf72e18092f822cf44d5f4ca45945fc1ea5a2773e4c
https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-a50298f7fd59d891b8d96bf72e18092f822cf44d5f4ca45945fc1ea5a2773e4c
packages/replay/src/eventBuffer/EventBufferCompressionWorker.tshttps://github.com/getsentry/sentry-javascript/pull/7992/files#diff-1000e15b8a77f61931d83fbfc686f80e9dc3173f7e9bb8687ebf5efc892539e4
View file https://github.com/getsentry/sentry-javascript/blob/1018103e847e1a78ca672e952f3037a823773180/packages/replay/src/eventBuffer/EventBufferCompressionWorker.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/7992/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-1000e15b8a77f61931d83fbfc686f80e9dc3173f7e9bb8687ebf5efc892539e4
https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-1000e15b8a77f61931d83fbfc686f80e9dc3173f7e9bb8687ebf5efc892539e4
https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-1000e15b8a77f61931d83fbfc686f80e9dc3173f7e9bb8687ebf5efc892539e4
https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-1000e15b8a77f61931d83fbfc686f80e9dc3173f7e9bb8687ebf5efc892539e4
https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-1000e15b8a77f61931d83fbfc686f80e9dc3173f7e9bb8687ebf5efc892539e4
https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-1000e15b8a77f61931d83fbfc686f80e9dc3173f7e9bb8687ebf5efc892539e4
packages/replay/src/eventBuffer/EventBufferProxy.tshttps://github.com/getsentry/sentry-javascript/pull/7992/files#diff-cb40ce8e24720df8d8947aac9056e33732ee41943debb8c1990f63a2e8f8d3ac
View file https://github.com/getsentry/sentry-javascript/blob/1018103e847e1a78ca672e952f3037a823773180/packages/replay/src/eventBuffer/EventBufferProxy.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/7992/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-cb40ce8e24720df8d8947aac9056e33732ee41943debb8c1990f63a2e8f8d3ac
https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-cb40ce8e24720df8d8947aac9056e33732ee41943debb8c1990f63a2e8f8d3ac
https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-cb40ce8e24720df8d8947aac9056e33732ee41943debb8c1990f63a2e8f8d3ac
packages/replay/src/replay.tshttps://github.com/getsentry/sentry-javascript/pull/7992/files#diff-37effab960cdba5170b96d00c73bf14c30c6d856a1c94de4f63fe1a06087bb97
View file https://github.com/getsentry/sentry-javascript/blob/1018103e847e1a78ca672e952f3037a823773180/packages/replay/src/replay.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/7992/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-37effab960cdba5170b96d00c73bf14c30c6d856a1c94de4f63fe1a06087bb97
https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-37effab960cdba5170b96d00c73bf14c30c6d856a1c94de4f63fe1a06087bb97
https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-37effab960cdba5170b96d00c73bf14c30c6d856a1c94de4f63fe1a06087bb97
https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-37effab960cdba5170b96d00c73bf14c30c6d856a1c94de4f63fe1a06087bb97
packages/replay/src/types.tshttps://github.com/getsentry/sentry-javascript/pull/7992/files#diff-03291ba19141ffd5bac4f1d6c5f97b587b3ce1d93481f165d42a1b2a650d93a9
View file https://github.com/getsentry/sentry-javascript/blob/1018103e847e1a78ca672e952f3037a823773180/packages/replay/src/types.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/7992/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-03291ba19141ffd5bac4f1d6c5f97b587b3ce1d93481f165d42a1b2a650d93a9
https://github.com/getsentry/sentry-javascript/pull/7992/files#diff-03291ba19141ffd5bac4f1d6c5f97b587b3ce1d93481f165d42a1b2a650d93a9
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/7992/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.