Skip to content

Maximum Session Replay Duration Configuration #8758

Closed
@jsfeb26

Description

@jsfeb26

Problem Statement

I want to capture 60 seconds before and 60 seconds after an error occurs. Our primary focus is on understanding how users encounter errors, so we don't need to record an entire 60 minutes after the error occurs

Currently, we are receiving really long session replays, whereas our main interest lies in the moments immediately preceding the error, along with a brief period thereafter. The majority of the replay consists of activities performed by users after the error, which is not important to us.

Solution Brainstorm

A simple solution would be a maxReplayDuration similar to the minReplayDuration.

Or it could be more fine-grained for people who only care about errors and have a configuration like:

  • beforeErrorDuration
  • afterErrorDuration

This would enable users to customize the amount of data they wish to capture both before and after an error happens.

Product Area

Replays

Metadata

Metadata

Assignees

Labels

Package: replayIssues related to the Sentry Replay SDK

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions