relay icon indicating copy to clipboard operation
relay copied to clipboard

feat(filter): Add common errors filter for frequently occurring noise

Open HazAT opened this issue 1 month ago • 0 comments

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.rs module with ~50 error patterns
  • Added CommonErrors variant to FilterStatKey
  • Added common_errors: FilterConfig to ProjectFiltersConfig

ref: https://github.com/getsentry/sentry/pull/104072 ref: https://github.com/getsentry/sentry/pull/104073

HazAT avatar Nov 26 '25 15:11 HazAT