sentry-failure

Crates.iosentry-failure
lib.rssentry-failure
version0.21.0
sourcesrc
created_at2020-06-18 13:47:40.45319
updated_at2020-11-12 13:43:20.889387
descriptionSentry integration for failure crate.
homepagehttps://sentry.io/welcome/
repositoryhttps://github.com/getsentry/sentry-rust
max_upload_size
id255338
size9,881
Sentry Bot (getsentry-bot)

documentation

README

Sentry Rust SDK: sentry-failure

Adds support for capturing Sentry errors from failure types.

Failure errors and Fail objects can be logged with the failure integration. This works really well if you use the failure::Error type or if you have failure::Fail objects that use the failure context internally to gain a backtrace.

Example

use sentry_failure::capture_error;
let result = match function_that_might_fail() {
    Ok(result) => result,
    Err(err) => {
        capture_error(&err);
        return Err(err);
    }
};

To capture fails and not errors use capture_fail.

Resources

License: Apache-2.0

Commit count: 1057

cargo fmt