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

Maximum Session Replay Duration Configuration #8758

Closed
jsfeb26 opened this issue Aug 8, 2023 · 3 comments · Fixed by #8769
Closed

Maximum Session Replay Duration Configuration #8758

jsfeb26 opened this issue Aug 8, 2023 · 3 comments · Fixed by #8769
Assignees
Labels
Package: replay Issues related to the Sentry Replay SDK

Comments

@jsfeb26
Copy link

jsfeb26 commented Aug 8, 2023

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

@getsantry
Copy link

getsantry bot commented Aug 8, 2023

Assigning to @getsentry/support for routing ⏲️

@getsantry
Copy link

getsantry bot commented Aug 8, 2023

Routing to @getsentry/product-owners-replays for triage ⏲️

@bruno-garcia bruno-garcia transferred this issue from getsentry/sentry Aug 8, 2023
@bruno-garcia bruno-garcia added the Package: replay Issues related to the Sentry Replay SDK label Aug 8, 2023
@bruno-garcia
Copy link
Member

Moved this issue to the JavaScript SDK monorepo.

This sound like a fair configuration to me. To allow setting maxReplayDuration for a replay in case one would want that lower than 60 minutes.

We recently added an option called minReplayDuration that controls the min duration. Value in milliseconds, default is 5000 and max is 15000:

This seems like a specific use case worth adding an option for, that perhaps helps unblock some use cases where folks asked for a more generic way to 'filter' replays, such as:

@mydea mydea self-assigned this Aug 9, 2023
mydea added a commit that referenced this issue Aug 31, 2023
This defaults to 60min, and is capped at max. 60min (=you cannot specify
a longer max duration than 60min).

Closes #8758
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: replay Issues related to the Sentry Replay SDK
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants