relay
relay copied to clipboard
feat(filter): Add common errors filter for frequently occurring noise
Summary
Adds a new common_errors inbound filter that filters out commonly occurring error messages that are typically noise and not actionable for developers.
This filter is based on analysis of the most frequently configured error message filters across Sentry customers, targeting patterns like:
- Network errors: Failed to fetch, Network Error, connection timeouts
- Browser quirks: ResizeObserver loop errors, AbortError
- Third-party SDK errors: gtag, fbq, HubSpot, Pinterest pixels
- Mobile WebView errors: Java bridge errors, iOS webkit handlers
- Cancelled requests: Including translations in multiple languages
The filter follows the same pattern as browser_extensions - it's a toggle-based filter with hardcoded regex patterns.
Changes
- New
relay-filter/src/common_errors.rsmodule with ~50 error patterns - Added
CommonErrorsvariant toFilterStatKey - Added
common_errors: FilterConfigtoProjectFiltersConfig
ref: https://github.com/getsentry/sentry/pull/104072 ref: https://github.com/getsentry/sentry/pull/104073