5 unstable releases

0.21.0 Nov 12, 2020
0.20.1 Sep 15, 2020
0.20.0 Sep 9, 2020
0.19.1 Aug 28, 2020
0.19.0 Jun 18, 2020

#14 in #fail

Download history 81/week @ 2024-07-29 109/week @ 2024-08-05 66/week @ 2024-08-12 80/week @ 2024-08-19 92/week @ 2024-08-26 101/week @ 2024-09-02 57/week @ 2024-09-09 85/week @ 2024-09-16 106/week @ 2024-09-23 142/week @ 2024-09-30 71/week @ 2024-10-07 115/week @ 2024-10-14 83/week @ 2024-10-21 223/week @ 2024-10-28 73/week @ 2024-11-04 31/week @ 2024-11-11

419 downloads per month

Apache-2.0

250KB
5K SLoC

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


lib.rs:

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.

Dependencies

~8–16MB
~214K SLoC