sentry-failure 0.20.1

Sentry integration for failure crate.
docs.rs failed to build sentry-failure-0.20.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: sentry-failure-0.21.0

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