Skip to main content

Why am I seeing Replays (web) with no errors when I only have error sampling enabled?

Issue

I want to know why I still see Session Replays with no errors when replaysSessionSampleRate is 0 and I only use error sampling.

Applies To

  • All SaaS Customers

  • JavaScript SDK

  • Session Replay (Web)

Resolution

Error-sampled replays can still appear without an error in the UI if the SDK sends both the error and the replay, but an inbound filter drops the error without dropping the replay. React hydration errors are a common example: they’re filtered by default for errors, but that filter doesn’t apply to replays.

Check the replay’s Tags for replayType:

  • buffer - captured via replaysOnErrorSampleRate

  • session - captured via replaysSessionSampleRate

To keep those errors filtered and prevent them from using replay quota, drop them on the client (for example, with beforeErrorSampling, ignoreErrors, or beforeSend) so the replay is never started.

Did this answer your question?