Skip to content
bliptracedocs

Install an SDK

Rust

The std-only Rust SDK, at an early stage. It speaks plain HTTP only, so it needs a TLS transport to reach Bliptrace.

On this page

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.com today, swap the transport for a reqwest or ureq build, 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");
Documentation