#sentry #metrics-exporter #metrics #observability #operations

metrics-exporter-sentry

metrics-rs exporter for Sentry metrics

1 unstable release

0.1.0 May 1, 2024

#40 in #sentry

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

~5–6.5MB
~116K SLoC