1 unstable release

0.1.0 May 1, 2024

#489 in Debugging

Download history 90/week @ 2024-04-26 22/week @ 2024-05-03

112 downloads per month

MIT license

16KB
154 lines

metrics-exporter-sentry

Crates.io License Build Status docs.rs

A metrics-rs exporter for Sentry Metrics. The exporter uses the Sentry Rust SDK to emit the metrics.

Example

use metrics::counter;

fn main() {
    let _sentry = sentry::init("https://public@example.com/123");

    metrics::set_global_recorder(metrics_exporter_sentry::SentryRecorder::new()).unwrap();

    counter!("hello_world", "color" => "green").increment(1);
}

Dependencies

~4.5–6MB
~138K SLoC