ckb-sentry-anyhow

Crates.iockb-sentry-anyhow
lib.rsckb-sentry-anyhow
version0.21.0
sourcesrc
created_at2020-12-16 05:23:45.640751
updated_at2020-12-16 05:23:45.640751
descriptionSentry integration for anyhow.
homepage
repositoryhttps://github.com/nervosnetwork/sentry-rust
max_upload_size
id323488
size3,455
ian (doitian)

documentation

README

Sentry Rust SDK: sentry-anyhow

Adds support for capturing Sentry errors from anyhow::Error.

Example

use sentry_anyhow::capture_anyhow;

fn function_that_might_fail() -> anyhow::Result<()> {
    Err(anyhow::anyhow!("some kind of error"))
}

if let Err(err) = function_that_might_fail() {
    capture_anyhow(&err);
}

Resources

License: Apache-2.0

Commit count: 735

cargo fmt