Sentry-Client
OS | Build Status |
---|---|
Linux | |
Windows |
Sentry Client is a fork of: THIS sentry client, but contains numerous fixes as well as some code/dependency cleanup.
Usage
Add the following to your rusts Cargo.toml
:
[]
= "1.0"
And then this in your crate root:
extern crate sentry_rs;
Examples
If you'd like to simply send a message to sentry you can use the logging interface:
let credentials = SentryCredentials ;
let sentry = new;
/// Logger Name, Message to Log, Potential Culprit (Option<&str>).
sentry.info;
You can use sentry cross threads:
let sentry = new;
let sentry1 = sentry.clone;
spawn;
As of Rust v1.10 (and higher), you can use register_panic_handler()
to automatically
post stack traces on panics:
sentry.register_panic_handler();
sentry.unregister_panic_handler();
License
This library is licensed under MIT.