getsentry / getsentry/sentry-javascript

Allow use of `sessionStorage` in `browserSessionIntegration` to more accurately count sessions for MPAs

Open
#14,478 7 comments 0 reactions 0 assignees View on GitHub
Browser Feature Feature: Sessions
Dominant language
TypeScript
Stars
8.7k
Forks
1.8k
Avg merge
1d 17h
Merged PRs (30d)
515

Description

### Description

Session updates we send from the Browser SDK are currently per pageview, leading to more sessions than is commonly understood for MPAs. We find that Sessions likely should have the same lifetime as a Session Replay session. For this we should introduce an option in the `browserSessionIntegration` that allows a user to configure a persistence model using `sessionStorage` to more accurately collect number of sessions.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.