You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sampleRate for error events silently prevents crash-free session marking #22615
With sample rate set to 0.01 Crash-free session rate stays ~99–100% because ~99% of the time, the error is dropped by sampleRate before the session is ever marked crashed.
beforeSend returning null has the exact same effect, for the same reason (it also short-circuits before reaching _updateSessionFromEvent).
This is different to what docs say: Please note that the number of crashes is not expected to match the number of crashed sessions because sessions are not subject to [inbound filters](https://docs.sentry.io/concepts/data-management/filtering/) or [sampling](https://docs.sentry.io/platform-redirect/?next=/configuration/sampling/).
Priority
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.
Activity
linear-code commentedon Jul 24, 2026
JS-3156
danielsheccoury-sentry commentedon Jul 24, 2026
Ticket link to the issue https://app.intercom.com/a/inbox/onh0p2wm/inbox/admin/10968572/conversation/215475213552169?view=Table
s1gr1d commentedon Jul 27, 2026
Hello, and thanks for writing in!
I created a PR to fix this: #22671
This will also be backported to v10 (our working branch is already on v11).
fix(core): Sample errors after `beforeSend` while preserving session …
fix(v10/core): Sample errors after `beforeSend` while preserving sess…