Background
sentry-java 8.55.0 (#5990) added InternalSentrySdk.updateSessionForDroppedEventNonTerminating so hybrid SDKs can still update the session (error count) when an error is dropped by sampling, without terminating it.
Current RN behavior
When an error is dropped on the JS side (e.g. sampleRate, beforeSend returning null), the envelope is never forwarded to native, so the native session is never updated to reflect that an error occurred. The only native session signal is via captureEnvelope (wrapper.ts:196-235 → RNSentryModuleImpl.java:500-511).
Question / scope
Evaluate whether RN's errored/session error counts drift when JS-side sampling drops error events, and whether to call updateSessionForDroppedEventNonTerminating in that path. Pairs with #6659.
Follow-up from the 8.55.0 bump (#6658).
Background
sentry-java 8.55.0 (#5990) added
InternalSentrySdk.updateSessionForDroppedEventNonTerminatingso hybrid SDKs can still update the session (error count) when an error is dropped by sampling, without terminating it.Current RN behavior
When an error is dropped on the JS side (e.g.
sampleRate,beforeSendreturning null), the envelope is never forwarded to native, so the native session is never updated to reflect that an error occurred. The only native session signal is viacaptureEnvelope(wrapper.ts:196-235→RNSentryModuleImpl.java:500-511).Question / scope
Evaluate whether RN's
errored/session error counts drift when JS-side sampling drops error events, and whether to callupdateSessionForDroppedEventNonTerminatingin that path. Pairs with #6659.Follow-up from the 8.55.0 bump (#6658).