Restart onError sampling for replays after stopping
- Langage dominant
- Python
- Étoiles
- 44.8k
- Forks
- 4.9k
- Merge moyen
- 22 h 21 min
- PR mergées (30 j)
- 586
Description
### Problem Statement
We received the following message from a customer:
One account in our team has multiple roles that can be switched. We hope that when the user switches roles, the errors that occur will be recorded in a new Replays.
The latest version does not have replay.setupOnce(). Simply using replay.stop() and replay.start() will not generate new Replays. I only want to use replaysOnErrorSampleRate, because if replaysSessionSampleRate or tracesSampleRate is used, replay.start() will be executed when switching users, and then a Replay without error records will be generated.
### Solution Brainstorm
Expose a public API to allow for restarting of onError sampling after replay has been stopped.
### Product Area
Replays
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par examiner le cycle de vie de Replay autour de replay.stop() et replay.start(), en vous concentrant sur le comportement de replaysOnErrorSampleRate après l'arrêt. Définissez le comportement public du redémarrage afin qu'un changement de rôle puisse créer un nouveau Replay déclenché par une erreur sans activer session ni trace sampling. L'issue ne nomme aucun fichier ni test ; ces points d'entrée doivent donc d'abord être localisés.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Domaine
- observability
- Type d'issue
- Fonctionnalité
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 35/100