-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Error-based replays do not continue to buffer after an initial replay is captured #8257
Comments
Yes, I think I agree - expected behavior would be to start a regular session, when it's over switch back to buffering. Thinking about this, does this also make sense for regular sessions? 🤔 so whenever a session is over (no matter why) we switch to buffering mode (unless on error sample rate is 0)? Would probably simplify this a bit. |
Thank you for the update! 🙏 |
We changed the behavior around this, I think we handle this better now! |
For "error-based" sampling, we buffer the replay events until an error occurs. After an error occurs, we upload the replay and continue to record the replay and treat the rest of the replay as a "session-based" replay. After this session expires, we stop replay completely. In order to capture replays again on that browser tab, two things must occur: 1) session in session storage has to be expired and 2) user has to reload the tab.
Session-based replays will get resampled after they expire, so I think it makes sense to restart buffering mode after an error-based replay is completed.
The text was updated successfully, but these errors were encountered: