Crate relay_filter

Source
Expand description

Implements event filtering.

Events may be filtered base on the following configurable criteria.

  • localhost (filter events originating from the local machine)
  • browser extensions (filter events caused by known problematic browser extensions)
  • web crawlers (filter events sent by user agents known to be web crawlers)
  • legacy browsers (filter events originating from legacy browsers, can be configured)

Re-exports§

pub use crate::csp::matches_any_origin;
pub use crate::generic::are_generic_filters_supported;

Modules§

browser_extensions
Implements filtering for events caused by problematic browsers extensions.
client_ips
Implements event filtering based on the client ip address.
csp
Implements event filtering for events originating from CSP endpoints
error_messages
Implements event filtering based on the error message
generic
Implements generic filtering based on the [RuleCondition] DSL.
legacy_browsers
Implements filtering for events originating from legacy browsers.
localhost
Implements filtering for events originating from the localhost
transaction_name
Implements event filtering based on whether the endpoint called is a healthcheck endpoint.
web_crawlers
Filters events coming from user agents known to be web crawlers.

Structs§

ClientIpsFilterConfig
Configuration for the client ips filter.
CspFilterConfig
Configuration for the CSP filter.
ErrorMessagesFilterConfig
Configuration for the error messages filter.
FilterConfig
Common configuration for event filters.
GenericFilterConfig
Configuration for a generic filter.
GenericFiltersConfig
Configuration for generic filters.
GenericFiltersMap
Map of generic filters, mapping from the id to the filter itself.
IgnoreTransactionsFilterConfig
Configuration for transaction name filter.
LegacyBrowsersFilterConfig
Configuration for the legacy browsers filter.
ProjectFiltersConfig
Configuration for all event filters from project configs.
ReleasesFilterConfig
Configuration for the releases filter.

Enums§

FilterStatKey
Identifies which filter dropped an event for which reason.
LegacyBrowser
A browser class to be filtered by the legacy browser filter.

Traits§

Filterable
A data item to which filters can be applied.

Functions§

should_filter
Checks whether an event should be filtered for a particular configuration.