pub fn should_filter<F: Filterable + Getter>(
    item: &F,
    client_ip: Option<IpAddr>,
    config: &ProjectFiltersConfig,
    global_config: Option<&GenericFiltersConfig>
) -> Result<(), FilterStatKey>
Expand description

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

If the event should be filtered, the Err returned contains a filter reason. The reason is the message returned by the first filter that didn’t pass.