Skip to content

Expose Custom Buffer Duration for Error-triggered Replays #2627

@Prithvirajkumar

Description

@Prithvirajkumar

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Backlog

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions