Rust Sentry Lib
Sentry Service now available for rust ;)
Rust 1.10 should include register_panic_handler and btw bring more value to this lib ;) This implementation use one thread listening incoming messages from dedicated channel and sending those messages to sentry server. If this thread panics, a new one is created.
Usage
Add this to your Cargo.toml
:
[]
= "0.1.9"
and this to your crate root:
extern crate sentry;
Examples
let credential = SentryCredential ;
let sentry = new;
sentry.info;
you can share sentry accross threads
let sentry = new;
let sentry1 = sentry.clone;
spawn;
with rust 1.10 or nightly you can register panic handler and still provide you own handler
sentry.register_panic_handler;
sentry.unregister_panic_handler;
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.