René's URL Explorer Experiment


Title: fix(replay): Fix re-sampled sessions after a click by billyvg · Pull Request #17008 · getsentry/sentry-javascript · GitHub

Open Graph Title: fix(replay): Fix re-sampled sessions after a click by billyvg · Pull Request #17008 · getsentry/sentry-javascript

X Title: fix(replay): Fix re-sampled sessions after a click by billyvg · Pull Request #17008 · getsentry/sentry-javascript

Description: Official Sentry SDKs for JavaScript. Contribute to getsentry/sentry-javascript development by creating an account on GitHub.

Open Graph Description: This fixes a bug where an expired session-based replay will always force a new session-based replay after a click, regardless of the actual recording mode. What is happening is: a session-based re...

X Description: This fixes a bug where an expired session-based replay will always force a new session-based replay after a click, regardless of the actual recording mode. What is happening is: a session-based re...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.3

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/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:c725c703-dd3f-d281-e296-300f1d846ca8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB44A:2E654B:236EE4E:2F48030:6B0594BB
html-safe-nonce92ea29f44fd2a325ab65b9e92f297dad8f85124f972ca244fcc3a8e2c4214b4d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDRBOjJFNjU0QjoyMzZFRTRFOjJGNDgwMzA6NkIwNTk0QkIiLCJ2aXNpdG9yX2lkIjoiMjg0NTQ4MDg5OTg1NTA5NDk3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca622ac09354305bee297f2ec3eaba4ad54c9aa4249d35dc0be3be62d61633a3a
hovercard-subject-tagpull_request:2665839299
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/getsentry/sentry-javascript/17008/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/302e5b5512c4f604e3fa9bd96c04d8543595cf2fad3d37024b76fe00516424c5/getsentry/sentry-javascript/pull/17008
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/302e5b5512c4f604e3fa9bd96c04d8543595cf2fad3d37024b76fe00516424c5/getsentry/sentry-javascript/pull/17008
og:image:altThis fixes a bug where an expired session-based replay will always force a new session-based replay after a click, regardless of the actual recording mode. What is happening is: a session-based re...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebillyvg
hostnamegithub.com
expected-hostnamegithub.com
None3b72fd2385d76a50ce0fe937d50bb4a81434432c4fd47866074a26f6cd03623f
turbo-cache-controlno-cache
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release58e2bd32336f3dcee343ec627a4d09c7c444e214
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/pull/17008#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F17008
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%2F17008
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/pull/17008
Reloadhttps://github.com/getsentry/sentry-javascript/pull/17008
Reloadhttps://github.com/getsentry/sentry-javascript/pull/17008
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues333 (333)https://github.com/getsentry/sentry-javascript/issues
Pull requests53 (53)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
https://github.com/getsentry/sentry-javascript
billyvghttps://github.com/billyvg
develophttps://github.com/getsentry/sentry-javascript/tree/develop
billy/replay-437-buffered-replays-are-being-captured-with-no-linked-errorshttps://github.com/getsentry/sentry-javascript/tree/billy/replay-437-buffered-replays-are-being-captured-with-no-linked-errors
Conversationhttps://github.com/getsentry/sentry-javascript/pull/17008
Commits8 (8)https://github.com/getsentry/sentry-javascript/pull/17008/commits
Checkshttps://github.com/getsentry/sentry-javascript/pull/17008/checks
Files changedhttps://github.com/getsentry/sentry-javascript/pull/17008/files
fix(replay): Fix re-sampled sessions after a clickhttps://github.com/getsentry/sentry-javascript/pull/17008#top
billyvghttps://github.com/billyvg
develophttps://github.com/getsentry/sentry-javascript/tree/develop
billy/replay-437-buffered-replays-are-being-captured-with-no-linked-errorshttps://github.com/getsentry/sentry-javascript/tree/billy/replay-437-buffered-replays-are-being-captured-with-no-linked-errors
https://github.com/billyvg
billyvghttps://github.com/billyvg
Jul 15, 2025https://github.com/getsentry/sentry-javascript/pull/17008#issue-3230526505
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/17008
addBreadcrumbEvent()https://github.com/getsentry/sentry-javascript/blob/develop/packages/replay-internal/src/coreHandlers/util/addBreadcrumbEvent.ts#L9
triggerUserActivity()https://github.com/getsentry/sentry-javascript/blob/develop/packages/replay-internal/src/coreHandlers/util/addBreadcrumbEvent.ts#L15
however stop() is async and is await-ed before we re-samplehttps://github.com/getsentry/sentry-javascript/blob/develop/packages/replay-internal/src/replay.ts#L917-L918
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/17008
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Jul 15, 2025https://github.com/getsentry/sentry-javascript/pull/17008#issuecomment-3071676993
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/17008
View base workflow runhttps://github.com/getsentry/sentry-javascript/actions/runs/16570170527
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/17008
https://github.com/billyvg
billyvghttps://github.com/billyvg
July 15, 2025 02:23https://github.com/getsentry/sentry-javascript/pull/17008#event-18628632660
https://github.com/billyvg
billyvghttps://github.com/billyvg
code ownerhttps://github.com/getsentry/sentry-javascript/blob/2426c9a145f4c42d3fa4874e8068bbd2895ff001/.github/CODEOWNERS#L1
July 15, 2025 02:23https://github.com/getsentry/sentry-javascript/pull/17008#event-18628632733
https://github.com/billyvg
billyvghttps://github.com/billyvg
chargomehttps://github.com/chargome
July 15, 2025 02:23https://github.com/getsentry/sentry-javascript/pull/17008#event-18628636008
https://github.com/mydea
mydeahttps://github.com/mydea
Jul 15, 2025 https://github.com/getsentry/sentry-javascript/pull/17008#pullrequestreview-3019303251
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/17008/files
packages/replay-internal/src/replay.tshttps://github.com/getsentry/sentry-javascript/pull/17008/files#diff-1a44154719e08b250b2dafb4e6b6e227874aa44f97453b756409c06c18255b4b
mydeahttps://github.com/mydea
Jul 15, 2025https://github.com/getsentry/sentry-javascript/pull/17008#discussion_r2206830781
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/17008
billyvghttps://github.com/billyvg
Jul 15, 2025https://github.com/getsentry/sentry-javascript/pull/17008#discussion_r2207419569
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/17008
https://github.com/billyvg
billyvghttps://github.com/billyvg
mydeahttps://github.com/mydea
July 15, 2025 14:18https://github.com/getsentry/sentry-javascript/pull/17008#event-18639627061
billyvghttps://github.com/billyvg
July 15, 2025 13:43https://github.com/getsentry/sentry-javascript/pull/17008#commits-pushed-5ef69aa
https://github.com/billyvg
fix(replay): Fix re-sampled sessions after a clickhttps://github.com/getsentry/sentry-javascript/pull/17008/commits/5ef69aa9d369770443e52b05ca799865a2e30819
5ef69aahttps://github.com/getsentry/sentry-javascript/pull/17008/commits/5ef69aa9d369770443e52b05ca799865a2e30819
https://github.com/billyvg
linthttps://github.com/getsentry/sentry-javascript/pull/17008/commits/624de963c860c2c34f3963f384fb71c4e1a2e0e3
624de96https://github.com/getsentry/sentry-javascript/pull/17008/commits/624de963c860c2c34f3963f384fb71c4e1a2e0e3
https://github.com/billyvg
this shouldnt be undefined...https://github.com/getsentry/sentry-javascript/pull/17008/commits/166528eac03a28166c68c3cc3f129a7fd848005a
166528ehttps://github.com/getsentry/sentry-javascript/pull/17008/commits/166528eac03a28166c68c3cc3f129a7fd848005a
https://github.com/billyvg
set recordingMode to session in starthttps://github.com/getsentry/sentry-javascript/pull/17008/commits/e88f56e2e84c4fd2604bf9354fd8fe711d433623
e88f56ehttps://github.com/getsentry/sentry-javascript/pull/17008/commits/e88f56e2e84c4fd2604bf9354fd8fe711d433623
https://github.com/billyvg
fix testhttps://github.com/getsentry/sentry-javascript/pull/17008/commits/79745ee9095d7b0226312637ec824bd89b92acf4
79745eehttps://github.com/getsentry/sentry-javascript/pull/17008/commits/79745ee9095d7b0226312637ec824bd89b92acf4
https://github.com/billyvg
lint + fix testhttps://github.com/getsentry/sentry-javascript/pull/17008/commits/0085f571194bc9f0cb5fc312aef5d94731316cb4
0085f57https://github.com/getsentry/sentry-javascript/pull/17008/commits/0085f571194bc9f0cb5fc312aef5d94731316cb4
https://github.com/billyvg
wrong sample ratehttps://github.com/getsentry/sentry-javascript/pull/17008/commits/5b506237a2d742a6970632eaa99fb19a6e65f909
5b50623https://github.com/getsentry/sentry-javascript/pull/17008/commits/5b506237a2d742a6970632eaa99fb19a6e65f909
https://github.com/billyvg
billyvghttps://github.com/billyvg
force-pushedhttps://github.com/getsentry/sentry-javascript/compare/7d56b742b30e00324274928f7c3ae89b0b4da777..5b506237a2d742a6970632eaa99fb19a6e65f909
7d56b74https://github.com/getsentry/sentry-javascript/commit/7d56b742b30e00324274928f7c3ae89b0b4da777
5b50623https://github.com/getsentry/sentry-javascript/commit/5b506237a2d742a6970632eaa99fb19a6e65f909
Compare https://github.com/getsentry/sentry-javascript/compare/7d56b742b30e00324274928f7c3ae89b0b4da777..5b506237a2d742a6970632eaa99fb19a6e65f909
July 15, 2025 17:43https://github.com/getsentry/sentry-javascript/pull/17008#event-18643547096
https://github.com/apps/cursor
cursorhttps://github.com/apps/cursor
Jul 15, 2025https://github.com/getsentry/sentry-javascript/pull/17008#issuecomment-3074652740
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/17008
https://github.com/chargome
chargomehttps://github.com/chargome
Jul 17, 2025 https://github.com/getsentry/sentry-javascript/pull/17008#pullrequestreview-3028224408
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/17008/files/f9230960454336e82e463cd1aea4b6b0781ce7cd
https://github.com/billyvg
Merge branch 'develop' into billy/replay-437-buffered-replays-are-bei…https://github.com/getsentry/sentry-javascript/pull/17008/commits/f9230960454336e82e463cd1aea4b6b0781ce7cd
f923096https://github.com/getsentry/sentry-javascript/pull/17008/commits/f9230960454336e82e463cd1aea4b6b0781ce7cd
https://github.com/billyvg
billyvghttps://github.com/billyvg
ac3e6e5https://github.com/getsentry/sentry-javascript/commit/ac3e6e53aa3e85a62aacc84a432795e296b90cf6
Jul 28, 2025https://github.com/getsentry/sentry-javascript/pull/17008#event-18859619179
https://github.com/billyvg
billyvghttps://github.com/billyvg
July 28, 2025 15:59https://github.com/getsentry/sentry-javascript/pull/17008#event-18859620002
billyvghttps://github.com/billyvg
Jul 28, 2025 https://github.com/getsentry/sentry-javascript/pull/17008#ref-commit-36001ad
https://github.com/billyvg
fix(replay): Fix re-sampled sessions after a click (https://github.com/getsentry/sentry-javascript/commit/36001adc8a4708425263101cd8dc1b65c1fe805f
#17008https://github.com/getsentry/sentry-javascript/pull/17008
)https://github.com/getsentry/sentry-javascript/commit/36001adc8a4708425263101cd8dc1b65c1fe805f
36001adhttps://github.com/getsentry/sentry-javascript/commit/36001adc8a4708425263101cd8dc1b65c1fe805f
https://github.com/getsentry/sentry-javascript/blob/develop/packages/replay-internal/src/coreHandlers/util/addBreadcrumbEvent.ts#L9https://github.com/getsentry/sentry-javascript/blob/develop/packages/replay-internal/src/coreHandlers/util/addBreadcrumbEvent.ts#L9
https://github.com/getsentry/sentry-javascript/blob/develop/packages/replay-internal/src/coreHandlers/util/addBreadcrumbEvent.ts#L15https://github.com/getsentry/sentry-javascript/blob/develop/packages/replay-internal/src/coreHandlers/util/addBreadcrumbEvent.ts#L15
https://github.com/getsentry/sentry-javascript/blob/develop/packages/replay-internal/src/replay.ts#L917-L918https://github.com/getsentry/sentry-javascript/blob/develop/packages/replay-internal/src/replay.ts#L917-L918
https://github.com/getsentry/sentry-javascript/blob/develop/packages/replay-internal/src/replay.ts#L626)`https://github.com/getsentry/sentry-javascript/blob/develop/packages/replay-internal/src/replay.ts#L626)`
https://github.com/billyvg
billyvghttps://github.com/billyvg
Jul 28, 2025 https://github.com/getsentry/sentry-javascript/pull/17008#ref-pullrequest-3270646037
fix(v9/replay): Fix re-sampled sessions after a click #17195 https://github.com/getsentry/sentry-javascript/pull/17195
AbhiPrasadhttps://github.com/AbhiPrasad
Jul 29, 2025 https://github.com/getsentry/sentry-javascript/pull/17008#ref-commit-f8935d9
https://github.com/billyvg
https://github.com/AbhiPrasad
fix(v9/replay): Fix re-sampled sessions after a click (https://github.com/getsentry/sentry-javascript/commit/f8935d92c4b4c8a9851b54079af490cdfae79fea
#17195https://github.com/getsentry/sentry-javascript/pull/17195
)https://github.com/getsentry/sentry-javascript/commit/f8935d92c4b4c8a9851b54079af490cdfae79fea
f8935d9https://github.com/getsentry/sentry-javascript/commit/f8935d92c4b4c8a9851b54079af490cdfae79fea
#17008https://github.com/getsentry/sentry-javascript/pull/17008
Bump @sentry/react from 8.55.0 to 10.16.0 Pouria-FOSSA/dependabot-metadata-test#65 https://github.com/Pouria-FOSSA/dependabot-metadata-test/pull/65
Bump @sentry/react from 8.55.0 to 10.17.0 Pouria-FOSSA/dependabot-metadata-test#66 https://github.com/Pouria-FOSSA/dependabot-metadata-test/pull/66
Bump @sentry/react from 8.55.0 to 10.18.0 Pouria-FOSSA/dependabot-metadata-test#68 https://github.com/Pouria-FOSSA/dependabot-metadata-test/pull/68
Bump @sentry/react from 8.55.0 to 10.19.0 Pouria-FOSSA/dependabot-metadata-test#70 https://github.com/Pouria-FOSSA/dependabot-metadata-test/pull/70
Bump @sentry/react from 8.55.0 to 10.20.0 Pouria-FOSSA/dependabot-metadata-test#71 https://github.com/Pouria-FOSSA/dependabot-metadata-test/pull/71
Bump @sentry/react from 8.55.0 to 10.21.0 Pouria-FOSSA/dependabot-metadata-test#72 https://github.com/Pouria-FOSSA/dependabot-metadata-test/pull/72
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F17008
https://github.com/chargome
chargome https://github.com/chargome
https://github.com/getsentry/sentry-javascript/pull/17008/files/f9230960454336e82e463cd1aea4b6b0781ce7cd
https://github.com/mydea
mydea https://github.com/mydea
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/17008
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/17008
https://github.com/billyvg
https://github.com/mydea
https://github.com/chargome
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.