Struct prometheus_client::metrics::exemplar::HistogramWithExemplars
source · pub struct HistogramWithExemplars<S> { /* private fields */ }
Expand description
Open Metrics Histogram
to both measure distributions of discrete events.
and track references to data outside of the metric set.
let histogram = HistogramWithExemplars::new(exponential_buckets(1.0, 2.0, 10));
histogram.observe(4.2, Some(vec![("user_id".to_string(), "42".to_string())]));