1 unstable release
0.1.0 | May 1, 2024 |
---|
#40 in #sentry
16KB
154 lines
metrics-exporter-sentry
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