metrics-exporter-sentry

Crates.iometrics-exporter-sentry
lib.rsmetrics-exporter-sentry
version0.1.0
sourcesrc
created_at2024-05-01 11:00:37.542154
updated_at2024-05-01 11:00:37.542154
descriptionmetrics-rs exporter for Sentry metrics
homepage
repositoryhttps://github.com/Dav1dde/metrics-exporter-sentry
max_upload_size
id1226073
size55,819
David Herberth (Dav1dde)

documentation

README

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);
}
Commit count: 1

cargo fmt