sentry-react-native icon indicating copy to clipboard operation
sentry-react-native copied to clipboard

Ignore certain errors for Replay sampling: beforeErrorSampling for React Native Mobile Replay

Open jas-kas opened this issue 7 months ago • 2 comments

Description

Offer the same option on Mobile Replay as seen for JS: https://docs.sentry.io/platforms/javascript/session-replay/understanding-sessions/#ignore-certain-errors-for-error-sampling

jas-kas avatar Jun 13 '25 19:06 jas-kas

This is becoming a big problem for us since we enabled React Native replays. We don't need 17k replays of the same error, but we do need to track that the error happened 17k times so we know what to prioritize. We hit our replay quota, and now we don't have replays left for other errors.

net avatar Jun 13 '25 20:06 net

The ideal state would be Sentry being able to drop replays on the server side. This could be manually triggered via a "Pause Replays" button when viewing an error, or even better would be dynamically dropping errors so that Sentry only collects a useful number for each error and no more.

net avatar Jun 13 '25 20:06 net