Trait Filterable

Source
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§

Source

fn csp(&self) -> Option<&Csp>

The CSP report contained in the item. Only for CSP reports.

Source

fn exceptions(&self) -> Option<&Values<Exception>>

The exception values of the item. Only for error events.

Source

fn ip_addr(&self) -> Option<&str>

The IP address of the client that sent the data.

Source

fn logentry(&self) -> Option<&LogEntry>

The logentry message. Only for error events.

Source

fn release(&self) -> Option<&str>

The release string of the data item.

Source

fn transaction(&self) -> Option<&str>

The transaction name. Only for transaction events.

Source

fn url(&self) -> Option<Url>

The URL from which the request originates. Used for localhost filtering.

Source

fn user_agent(&self) -> Option<&str>

The user agent of the client that sent the data.

Source

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.

Implementations on Foreign Types§

Source§

impl Filterable for Event

Source§

fn csp(&self) -> Option<&Csp>

Source§

fn exceptions(&self) -> Option<&Values<Exception>>

Source§

fn ip_addr(&self) -> Option<&str>

Source§

fn logentry(&self) -> Option<&LogEntry>

Source§

fn release(&self) -> Option<&str>

Source§

fn transaction(&self) -> Option<&str>

Source§

fn url(&self) -> Option<Url>

Source§

fn user_agent(&self) -> Option<&str>

Source§

fn header(&self, header_name: &str) -> Option<&str>

Source§

impl Filterable for Replay

Source§

fn csp(&self) -> Option<&Csp>

Source§

fn exceptions(&self) -> Option<&Values<Exception>>

Source§

fn ip_addr(&self) -> Option<&str>

Source§

fn logentry(&self) -> Option<&LogEntry>

Source§

fn release(&self) -> Option<&str>

Source§

fn transaction(&self) -> Option<&str>

Source§

fn url(&self) -> Option<Url>

Source§

fn user_agent(&self) -> Option<&str>

Source§

fn header(&self, header_name: &str) -> Option<&str>

Source§

impl Filterable for Span

Source§

fn csp(&self) -> Option<&Csp>

Source§

fn exceptions(&self) -> Option<&Values<Exception>>

Source§

fn ip_addr(&self) -> Option<&str>

Source§

fn logentry(&self) -> Option<&LogEntry>

Source§

fn release(&self) -> Option<&str>

Source§

fn transaction(&self) -> Option<&str>

Source§

fn url(&self) -> Option<Url>

Source§

fn user_agent(&self) -> Option<&str>

Source§

fn header(&self, _: &str) -> Option<&str>

Implementors§