🐻‍❄️👀 sentry-eyre

Sentry integration for eyre

sentry-eyre is a integration to capture eyre::Reports. This crate was inspired by the sentry-anyhow integration, and does a similar API but distinct enough to not create any issues.

Usage

toml [dependencies] sentry-eyre = "0.1" sentry = "*"

```rs use eyre::Result; use sentryeyre::capturereport; use sentry::{ClientOptions, init, types::Dsn}; use std::io::{Error, ErrorKind};

fn somemethodthat_fails() -> Result<()> { Err(Error::new(ErrorKind::Other, "this should fail")) }

fn main() { // init the client guard, which will be dropped at the end // of the scope. let guard = init(ClientOptions::default()); let func = somemethodthatfails();

match func {
    Ok(()) => panic!("expected this to fail")
    Err(report) => {
        capture_report(&report);
    }
}

} ```

License

sentry-eyre is released under the MIT License with love by Noel.