Skip to content

Latest commit

 

History

History
 
 

sentry-anyhow

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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