René's URL Explorer Experiment


Title: feat(replay): Ensure min/max duration when flushing by mydea · Pull Request #8596 · getsentry/sentry-javascript · GitHub

Open Graph Title: feat(replay): Ensure min/max duration when flushing by mydea · Pull Request #8596 · getsentry/sentry-javascript

X Title: feat(replay): Ensure min/max duration when flushing by mydea · Pull Request #8596 · 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 PR adds a safeguard to ensure we do not flush (=send) a replay that is either too short or too long. We allow to configure a minReplayDuration, which defaults to 5s and maxes out at 15s. Whene...

X Description: This PR adds a safeguard to ensure we do not flush (=send) a replay that is either too short or too long. We allow to configure a minReplayDuration, which defaults to 5s and maxes out at 15s. Whene...

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

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:ac4d5024-d49a-dffc-6238-b313fd5b343d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBB36:1DE2E0:6FB980:9DA664:6B044E36
html-safe-noncebbdec013dc4b9e36a84a36fa873df25a9e4d3ecd72107d57d740d3ac70c966f2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjM2OjFERTJFMDo2RkI5ODA6OURBNjY0OjZCMDQ0RTM2IiwidmlzaXRvcl9pZCI6IjgzMTE3MzE5Njk4NDc0Nzk4NjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac8b5de845e8285f07221eb7921ccb45930f350ecb426b41c689df13721003fad5
hovercard-subject-tagpull_request:1442710096
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/8596/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/f345f825fd4a4f9357e5fe7003e36db4a7ef3b8817eb6bd574bf412d0ef172c4/getsentry/sentry-javascript/pull/8596
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f345f825fd4a4f9357e5fe7003e36db4a7ef3b8817eb6bd574bf412d0ef172c4/getsentry/sentry-javascript/pull/8596
og:image:altThis PR adds a safeguard to ensure we do not flush (=send) a replay that is either too short or too long. We allow to configure a minReplayDuration, which defaults to 5s and maxes out at 15s. Whene...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemydea
hostnamegithub.com
expected-hostnamegithub.com
None002aa6b95ffa730b0aec436a5c383f536ad677284e60056037fb120afe37b730
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
release059f24c781e3a0d7df3f27a97da0e93fab06ae39
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/pull/8596#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F8596
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%2F8596
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/8596
Reloadhttps://github.com/getsentry/sentry-javascript/pull/8596
Reloadhttps://github.com/getsentry/sentry-javascript/pull/8596
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
https://github.com/getsentry/sentry-javascript
mydeahttps://github.com/mydea
develophttps://github.com/getsentry/sentry-javascript/tree/develop
fn/limit-replay-durationhttps://github.com/getsentry/sentry-javascript/tree/fn/limit-replay-duration
Conversationhttps://github.com/getsentry/sentry-javascript/pull/8596
Commits1 (1)https://github.com/getsentry/sentry-javascript/pull/8596/commits
Checkshttps://github.com/getsentry/sentry-javascript/pull/8596/checks
Files changedhttps://github.com/getsentry/sentry-javascript/pull/8596/files
feat(replay): Ensure min/max duration when flushinghttps://github.com/getsentry/sentry-javascript/pull/8596#top
mydeahttps://github.com/mydea
develophttps://github.com/getsentry/sentry-javascript/tree/develop
fn/limit-replay-durationhttps://github.com/getsentry/sentry-javascript/tree/fn/limit-replay-duration
https://github.com/mydea
mydeahttps://github.com/mydea
Jul 20, 2023https://github.com/getsentry/sentry-javascript/pull/8596#issue-1813808346
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/8596
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/8596
https://github.com/mydea
mydeahttps://github.com/mydea
Package: replay https://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Package%3A%20replay%22
Jul 20, 2023https://github.com/getsentry/sentry-javascript/pull/8596#event-9873495505
https://github.com/mydea
mydeahttps://github.com/mydea
Lms24https://github.com/Lms24
billyvghttps://github.com/billyvg
July 20, 2023 11:46https://github.com/getsentry/sentry-javascript/pull/8596#event-9873495538
https://github.com/mydea
mydeahttps://github.com/mydea
Jul 20, 2023https://github.com/getsentry/sentry-javascript/pull/8596#event-9873495611
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Jul 20, 2023https://github.com/getsentry/sentry-javascript/pull/8596#issuecomment-1643793320
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/8596
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/8596
https://github.com/billyvg
billyvghttps://github.com/billyvg
Jul 20, 2023 https://github.com/getsentry/sentry-javascript/pull/8596#pullrequestreview-1539158527
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/8596/files
packages/replay/src/constants.tshttps://github.com/getsentry/sentry-javascript/pull/8596/files#diff-a50298f7fd59d891b8d96bf72e18092f822cf44d5f4ca45945fc1ea5a2773e4c
billyvghttps://github.com/billyvg
Jul 20, 2023https://github.com/getsentry/sentry-javascript/pull/8596#discussion_r1269393184
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/8596
mydeahttps://github.com/mydea
Jul 20, 2023https://github.com/getsentry/sentry-javascript/pull/8596#discussion_r1269425863
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/8596
packages/replay/src/constants.tshttps://github.com/getsentry/sentry-javascript/pull/8596/files#diff-a50298f7fd59d891b8d96bf72e18092f822cf44d5f4ca45945fc1ea5a2773e4c
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/8596
packages/replay/src/integration.tshttps://github.com/getsentry/sentry-javascript/pull/8596/files#diff-8fcb8015cb8a332c972960156ed5fcbe9d57ae5d3624f3a1c886c635ca6e5f3a
billyvghttps://github.com/billyvg
Jul 20, 2023https://github.com/getsentry/sentry-javascript/pull/8596#discussion_r1269394628
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/8596
billyvghttps://github.com/billyvg
Jul 20, 2023https://github.com/getsentry/sentry-javascript/pull/8596#discussion_r1269423458
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/8596
mydeahttps://github.com/mydea
Jul 20, 2023https://github.com/getsentry/sentry-javascript/pull/8596#discussion_r1269427011
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/8596
packages/replay/src/replay.tshttps://github.com/getsentry/sentry-javascript/pull/8596/files#diff-37effab960cdba5170b96d00c73bf14c30c6d856a1c94de4f63fe1a06087bb97
billyvghttps://github.com/billyvg
Jul 20, 2023https://github.com/getsentry/sentry-javascript/pull/8596#discussion_r1269396902
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/8596
mydeahttps://github.com/mydea
Jul 20, 2023https://github.com/getsentry/sentry-javascript/pull/8596#discussion_r1269423319
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/8596
packages/replay/test/integration/flush.test.tshttps://github.com/getsentry/sentry-javascript/pull/8596/files#diff-f807b0e703bcc28e7cb33249522309f246970f9bfb2cc8cd97acca16568d46a4
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/8596
packages/replay/test/integration/flush.test.tshttps://github.com/getsentry/sentry-javascript/pull/8596/files#diff-f807b0e703bcc28e7cb33249522309f246970f9bfb2cc8cd97acca16568d46a4
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/8596
packages/replay/src/replay.tshttps://github.com/getsentry/sentry-javascript/pull/8596/files#diff-37effab960cdba5170b96d00c73bf14c30c6d856a1c94de4f63fe1a06087bb97
billyvghttps://github.com/billyvg
Jul 20, 2023https://github.com/getsentry/sentry-javascript/pull/8596#discussion_r1269405309
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/8596
mydeahttps://github.com/mydea
Jul 20, 2023https://github.com/getsentry/sentry-javascript/pull/8596#discussion_r1269433040
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/8596
billyvghttps://github.com/billyvg
Jul 20, 2023https://github.com/getsentry/sentry-javascript/pull/8596#discussion_r1269445489
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/8596
mydeahttps://github.com/mydea
Jul 20, 2023https://github.com/getsentry/sentry-javascript/pull/8596#discussion_r1269458148
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/8596
https://github.com/mydea
mydeahttps://github.com/mydea
force-pushedhttps://github.com/getsentry/sentry-javascript/compare/7c90552b3469217c88233226d1c6feb5e847c5be..98eeb59b151eae972ee886b7a94b7c1971ead650
7c90552https://github.com/getsentry/sentry-javascript/commit/7c90552b3469217c88233226d1c6feb5e847c5be
98eeb59https://github.com/getsentry/sentry-javascript/commit/98eeb59b151eae972ee886b7a94b7c1971ead650
Compare https://github.com/getsentry/sentry-javascript/compare/7c90552b3469217c88233226d1c6feb5e847c5be..98eeb59b151eae972ee886b7a94b7c1971ead650
July 20, 2023 12:56https://github.com/getsentry/sentry-javascript/pull/8596#event-9874213128
https://github.com/mydea
mydeahttps://github.com/mydea
Jul 20, 2023 https://github.com/getsentry/sentry-javascript/pull/8596#pullrequestreview-1539276142
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/8596/files
packages/replay/src/replay.tshttps://github.com/getsentry/sentry-javascript/pull/8596/files#diff-37effab960cdba5170b96d00c73bf14c30c6d856a1c94de4f63fe1a06087bb97
mydeahttps://github.com/mydea
Jul 20, 2023https://github.com/getsentry/sentry-javascript/pull/8596#discussion_r1269466195
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@billyvghttps://github.com/billyvg
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/8596
https://github.com/billyvg
billyvghttps://github.com/billyvg
Jul 20, 2023 https://github.com/getsentry/sentry-javascript/pull/8596#pullrequestreview-1539282285
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/8596/files
https://github.com/mydea
feat(replay): Ensure too short/long sessions are not flushedhttps://github.com/getsentry/sentry-javascript/pull/8596/commits/44f58c43c933ed85032edec782f30546719cbc9f
44f58c4https://github.com/getsentry/sentry-javascript/pull/8596/commits/44f58c43c933ed85032edec782f30546719cbc9f
https://github.com/mydea
mydeahttps://github.com/mydea
force-pushedhttps://github.com/getsentry/sentry-javascript/compare/da0d42a60721d444fc97fd5e03fbfad817267c4c..44f58c43c933ed85032edec782f30546719cbc9f
da0d42ahttps://github.com/getsentry/sentry-javascript/commit/da0d42a60721d444fc97fd5e03fbfad817267c4c
44f58c4https://github.com/getsentry/sentry-javascript/commit/44f58c43c933ed85032edec782f30546719cbc9f
Compare https://github.com/getsentry/sentry-javascript/compare/da0d42a60721d444fc97fd5e03fbfad817267c4c..44f58c43c933ed85032edec782f30546719cbc9f
July 20, 2023 15:09https://github.com/getsentry/sentry-javascript/pull/8596#event-9875849266
https://github.com/mydea
mydeahttps://github.com/mydea
07e2e43https://github.com/getsentry/sentry-javascript/commit/07e2e43f7412c7cdc1e85ddcb7d0893c6c37b888
Jul 20, 2023https://github.com/getsentry/sentry-javascript/pull/8596#event-9876185582
https://github.com/mydea
mydeahttps://github.com/mydea
July 20, 2023 15:39https://github.com/getsentry/sentry-javascript/pull/8596#event-9876185812
https://github.com/mydea
mydeahttps://github.com/mydea
Jul 24, 2023 https://github.com/getsentry/sentry-javascript/pull/8596#ref-issue-1808167520
Replay: Allow the user-defined minimum session duration before flushing #8562 https://github.com/getsentry/sentry-javascript/issues/8562
bruno-garciahttps://github.com/bruno-garcia
Jul 24, 2023 https://github.com/getsentry/sentry-javascript/pull/8596#ref-commit-40876da
https://github.com/bruno-garcia
replay: minReplayDurationhttps://github.com/getsentry/sentry-docs/commit/40876dac4d2787f3c06bf335c6ce2d3c1dbae2a2
40876dahttps://github.com/getsentry/sentry-docs/commit/40876dac4d2787f3c06bf335c6ce2d3c1dbae2a2
getsentry/sentry-javascript#8596https://github.com/getsentry/sentry-javascript/pull/8596
replay: minReplayDuration getsentry/sentry-docs#7494 https://github.com/getsentry/sentry-docs/pull/7494
Provide a way to programmatically filter replays #8462 https://github.com/getsentry/sentry-javascript/issues/8462
Expired sessions are not being recreated correctly leading to very long session durations #8400 https://github.com/getsentry/sentry-javascript/issues/8400
https://github.com/bruno-garcia
bruno-garciahttps://github.com/bruno-garcia
Aug 8, 2023 https://github.com/getsentry/sentry-javascript/pull/8596#ref-issue-1841660845
Maximum Session Replay Duration Configuration #8758 https://github.com/getsentry/sentry-javascript/issues/8758
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%2F8596
https://github.com/billyvg
billyvg https://github.com/billyvg
https://github.com/getsentry/sentry-javascript/pull/8596/files/e9812819cec3ad5ab24eb605609e14e359eba91a
https://github.com/Lms24
Lms24 https://github.com/Lms24
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/8596
https://github.com/mydea
mydea https://github.com/mydea
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/8596
https://github.com/mydea
https://github.com/billyvg
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.