Skip to content
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

Expose Custom Buffer Duration for Error-triggered Replays #2627

Open
Prithvirajkumar opened this issue Jan 29, 2025 · 0 comments
Open

Expose Custom Buffer Duration for Error-triggered Replays #2627

Prithvirajkumar opened this issue Jan 29, 2025 · 0 comments

Comments

@Prithvirajkumar
Copy link
Member

Problem Statement

Currently, the Sentry Mobile SDK buffers replay data before an error occurs when onErrorSampleRate is enabled. However, the duration of this pre-error buffer is not configurable by customers and is limited to 1 minute as detailed here. Some users have expressed interest in adjusting this buffer period to capture more context leading up to an error.

Solution Brainstorm

Expose a configurable option in the SDKs to allow users to set the buffer duration for error-triggered session replays.

Concerns to address:

  • If the buffer is over 1 minute, it could consume more device resources to create a longer video segment
  • The replay could be rejected due to size limitations

Are you willing to submit a PR?

None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Waiting for: Product Owner
Status: Needs Discussion
Development

No branches or pull requests

2 participants