Crates.io | metrics-exporter-sentry |
lib.rs | metrics-exporter-sentry |
version | 0.1.0 |
source | src |
created_at | 2024-05-01 11:00:37.542154 |
updated_at | 2024-05-01 11:00:37.542154 |
description | metrics-rs exporter for Sentry metrics |
homepage | |
repository | https://github.com/Dav1dde/metrics-exporter-sentry |
max_upload_size | |
id | 1226073 |
size | 55,819 |
A metrics-rs exporter for Sentry Metrics. The exporter uses the Sentry Rust SDK to emit the metrics.
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);
}