https://github.com/mehcode/bugsnag-rs
Bugsnag error monitoring for rust
https://github.com/mehcode/bugsnag-rs
Last synced: 5 months ago
JSON representation
Bugsnag error monitoring for rust
- Host: GitHub
- URL: https://github.com/mehcode/bugsnag-rs
- Owner: mehcode
- Created: 2017-11-16T19:18:43.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-07T17:41:57.000Z (about 8 years ago)
- Last Synced: 2025-07-15T02:34:40.158Z (8 months ago)
- Language: Rust
- Homepage: https://bugsnag.com/
- Size: 51.8 KB
- Stars: 2
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://travis-ci.org/superscale/bugsnag-rs)
[](https://coveralls.io/github/superscale/bugsnag-rs?branch=master)
[](https://crates.io/crates/bugsnag)
[](./LICENSE-MIT)
[](https://docs.rs/bugsnag)
# bugsnag-rs
The Bugsnag api in rust.
# Example
```rust
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:
```rust
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](https://docs.bugsnag.com/api/error-reporting/).