getsentry / getsentry/sentry

Restart onError sampling for replays after stopping

未關閉
#77,458 4 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
Improvement Replays
主要語言
Python
星號
44.8k
分支
4.9k
平均合併
22 小時 21 分鐘
30 天內合併 PR
586

描述

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

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。