Applications need to exclude specific errors from triggering Session Replay while still reporting those errors to Sentry. Cocoa currently exposes onErrorSampleRate, but no per-error callback for this decision.
Requested proposal: expose an equivalent beforeErrorSampling callback in the Cocoa SDK so applications can filter which errors trigger buffered replays without dropping the error events.
via Ido Shemesh.
--
View Junior Session [Sentry]
Applications need to exclude specific errors from triggering Session Replay while still reporting those errors to Sentry. Cocoa currently exposes
onErrorSampleRate, but no per-error callback for this decision.onErrorSampleRate.beforeSendalso prevents it from triggering replay, but discards the error itself. This differs from retaining the error while excluding it from replay sampling; see Change order of event processing to filter replay events withbeforeSend#5735 for the existing filtering behavior.beforeErrorSampling: returningfalseskips replay capture for that error; returningtrueproceeds with the normalonErrorSampleRatecheck.Requested proposal: expose an equivalent
beforeErrorSamplingcallback in the Cocoa SDK so applications can filter which errors trigger buffered replays without dropping the error events.via Ido Shemesh.
--
View Junior Session [Sentry]