getsentry / getsentry/sentry

Restart onError sampling for replays after stopping

Abierto
#77,458 4 comentarios 0 reacciones 0 asignados Ver en GitHub
Improvement Replays
Lenguaje dominante
Python
Estrellas
44.8k
Forks
4.9k
Merge medio
22 h 21 min
PR fusionados (30 d)
586

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.