Extracted from PostHog/posthog#43012.
Problem
Suppression rules already ship end to end (backend model, API, remote-config delivery, settings UI) and posthog-js enforces them, but the Android SDK ignores errorTracking.suppressionRules, so rules set in the UI don't affect Android events.
Scope
- Read
suppressionRules from remote config, persist them, and drop matching exceptions before capture.
- Match on
$exception_list type and value with the same operator and AND/OR semantics as the web SDK (posthog-js packages/browser/src/posthog-exceptions.ts).
SDK only, no backend or frontend work. The web matcher currently ignores the per-rule samplingRate (boolean drop only); match that for now.
Extracted from PostHog/posthog#43012.
Problem
Suppression rules already ship end to end (backend model, API, remote-config delivery, settings UI) and posthog-js enforces them, but the Android SDK ignores
errorTracking.suppressionRules, so rules set in the UI don't affect Android events.Scope
suppressionRulesfrom remote config, persist them, and drop matching exceptions before capture.$exception_listtype and value with the same operator and AND/OR semantics as the web SDK (posthog-jspackages/browser/src/posthog-exceptions.ts).SDK only, no backend or frontend work. The web matcher currently ignores the per-rule
samplingRate(boolean drop only); match that for now.