6 releases

Uses old Rust 2015

0.2.1 Jan 8, 2018
0.2.0 Nov 18, 2017
0.1.3 Mar 30, 2017

#5 in #severity

Download history 8/week @ 2024-11-17 16/week @ 2024-11-24 13/week @ 2024-12-01 43/week @ 2024-12-08 36/week @ 2024-12-15 2/week @ 2024-12-22 12/week @ 2025-01-05 21/week @ 2025-01-12 50/week @ 2025-01-19 11/week @ 2025-01-26 56/week @ 2025-02-02 60/week @ 2025-02-09 62/week @ 2025-02-16 58/week @ 2025-02-23 33/week @ 2025-03-02

223 downloads per month
Used in 3 crates (2 directly)

MIT license

36KB
933 lines

Build Status Coverage Status MIT licensed docs

bugsnag-rs

The Bugsnag api in rust.

Example

use bugsnag;
let mut api = bugsnag::Bugsnag::new("api-key", env!("CARGO_MANIFEST_DIR"));

// setting the appinfo is not required, but recommended 
api.set_app_info(Some(env!("CARGO_PKG_VERSION")),
                 Some("development"),
                 Some("rust"));

api.notify("Info", "This is a message from the rust bugsnag api.")
       .severity(bugsnag::Severity::Info);

Or in a panic handler you could do the following:


use bugsnag;
let mut api = bugsnag::Bugsnag::new("api-key", env!("CARGO_MANIFEST_DIR"));

bugsnag::panic::handle(&api, panic_info, None);

For more examples on how to integrate bugsnag into a project, the examples folder provides some reference implementations.

Which json fields are missing?

  • metaData
  • user

The structure of the json can be found here.

Dependencies

~7–14MB
~208K SLoC