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

#10 in #fail

Download history 109/week @ 2023-12-15 30/week @ 2023-12-22 34/week @ 2023-12-29 71/week @ 2024-01-05 77/week @ 2024-01-12 99/week @ 2024-01-19 72/week @ 2024-01-26 44/week @ 2024-02-02 48/week @ 2024-02-09 62/week @ 2024-02-16 87/week @ 2024-02-23 112/week @ 2024-03-01 101/week @ 2024-03-08 70/week @ 2024-03-15 40/week @ 2024-03-22 141/week @ 2024-03-29

382 downloads per month

Apache-2.0

240KB
4.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–12MB
~247K SLoC