getsentry / getsentry/sentry-javascript

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

Aperta
#14,478 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Browser Feature Feature: Sessions
Lingua principale
TypeScript
Stelle
8.7k
Fork
1.8k
Merge medio
1g 17h
PR unite (30g)
515

Descrizione

### 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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.