pub trait Filterable {
// Required methods
fn csp(&self) -> Option<&Csp>;
fn exceptions(&self) -> Option<&Values<Exception>>;
fn ip_addr(&self) -> Option<&str>;
fn logentry(&self) -> Option<&LogEntry>;
fn release(&self) -> Option<&str>;
fn transaction(&self) -> Option<&str>;
fn url(&self) -> Option<Url>;
fn user_agent(&self) -> Option<&str>;
fn header(&self, header_name: &str) -> Option<&str>;
}
Expand description
A data item to which filters can be applied.
Required Methods§
Sourcefn exceptions(&self) -> Option<&Values<Exception>>
fn exceptions(&self) -> Option<&Values<Exception>>
The exception values of the item. Only for error events.
Sourcefn transaction(&self) -> Option<&str>
fn transaction(&self) -> Option<&str>
The transaction name. Only for transaction events.
Sourcefn url(&self) -> Option<Url>
fn url(&self) -> Option<Url>
The URL from which the request originates. Used for localhost filtering.
Sourcefn user_agent(&self) -> Option<&str>
fn user_agent(&self) -> Option<&str>
The user agent of the client that sent the data.
Sourcefn header(&self, header_name: &str) -> Option<&str>
fn header(&self, header_name: &str) -> Option<&str>
Retrieves a request headers from the item.
For example this is used for localhost filtering by inspecting relevant headers that may
be included in the request.headers
of an error.
This does not return header information from the request that reached relay.