Skip to content

feat(replay): Allow to configure maxReplayDuration #8769

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 31, 2023

Conversation

mydea
Copy link
Member

@mydea mydea commented Aug 9, 2023

This defaults to 60min, and is capped at max. 60min (=you cannot specify a longer max duration than 60min).

Closes #8758

@mydea mydea requested a review from billyvg August 9, 2023 12:09
@mydea mydea self-assigned this Aug 9, 2023
@mydea mydea force-pushed the fn/add-replay-maxDuration branch from 8cc5a7f to 6363e66 Compare August 9, 2023 12:19
@github-actions
Copy link
Contributor

github-actions bot commented Aug 9, 2023

size-limit report 📦

Path Size
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 75.32 KB (+0.09% 🔺)
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.21 KB (0%)
@sentry/browser - Webpack (gzipped) 21.83 KB (0%)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 69.84 KB (+0.12% 🔺)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 28.16 KB (+0.01% 🔺)
@sentry/browser - ES6 CDN Bundle (gzipped) 20.15 KB (+0.01% 🔺)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 220.72 KB (+0.24% 🔺)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 85 KB (0%)
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 59.71 KB (0%)
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 31.06 KB (0%)
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 75.34 KB (+0.09% 🔺)
@sentry/react - Webpack (gzipped) 21.86 KB (0%)
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 93.2 KB (+0.08% 🔺)
@sentry/nextjs Client - Webpack (gzipped) 50.79 KB (0%)

@@ -148,7 +147,6 @@ export class ReplayContainer implements ReplayContainerInterface {
this.timeouts = {
sessionIdlePause: SESSION_IDLE_PAUSE_DURATION,
sessionIdleExpire: SESSION_IDLE_EXPIRE_DURATION,
maxSessionLife: MAX_SESSION_LIFE,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not keep the max duration part of timeouts?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤷 just aligning this - the only reason these timeouts exist was to allow overwriting them in tests, which can now be done "correctly"/publicly via maxReplayDuration?

@mydea
Copy link
Member Author

mydea commented Aug 9, 2023

note: I rebased on develop, fixing inconsistencies.

@mydea mydea force-pushed the fn/add-replay-maxDuration branch 2 times, most recently from cc1a468 to 7f6fbad Compare August 11, 2023 07:00
@mydea mydea force-pushed the fn/add-replay-maxDuration branch from 7f6fbad to db0d4f6 Compare August 29, 2023 10:09
mydea added 2 commits August 31, 2023 09:25
This defaults to 60min, and is capped at max. 60min (=you cannot specify a longer max duration than 60min).
@mydea mydea force-pushed the fn/add-replay-maxDuration branch from db0d4f6 to 8f62064 Compare August 31, 2023 07:25
@mydea mydea merged commit 5354ee5 into develop Aug 31, 2023
@mydea mydea deleted the fn/add-replay-maxDuration branch August 31, 2023 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Maximum Session Replay Duration Configuration
2 participants