Macro record_error

Source
macro_rules! record_error {
    ($error:expr, !) => { ... };
    ($error:expr) => { ... };
    ($error:expr, $pattern:pat) => { ... };
}
Expand description

Record an error. It will emit a tracing event with the error level if matches the pattern, warning otherwise. It also returns the Sentry event ID if the error was recorded.