The Rust crate builds the envelope and sends it with a raw TcpStream: no dependencies, and capture never panics into your app.
Early stage. The built-in transport speaks plain HTTP only, and the Bliptrace ingest endpoint is HTTPS. To report to
https://ingest.bliptrace.comtoday, swap the transport for areqwestorureqbuild, or send the envelope yourself as shown in Send over HTTP. Not on crates.io yet. Source: github.com/bliptrace/bliptrace-rust.
Install
cargo add g8scope --git https://github.com/bliptrace/bliptrace-rust
Use it
use g8scope::{capture, Config};
let cfg = Config {
key: std::env::var("BLIPTRACE_KEY").unwrap_or_default(),
endpoint: "http://localhost:8088".into(), // plain HTTP only, see above
environment: "production".into(),
release: "[email protected]".into(),
..Default::default()
};
capture(&cfg, "std::io::Error", "disk full", "error");