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())]));
Implementations
Trait Implementations
sourceimpl<S> Clone for HistogramWithExemplars<S>
impl<S> Clone for HistogramWithExemplars<S>
sourceimpl<S: Debug> Debug for HistogramWithExemplars<S>
impl<S: Debug> Debug for HistogramWithExemplars<S>
sourceimpl<S: Encode> EncodeMetric for HistogramWithExemplars<S>
impl<S: Encode> EncodeMetric for HistogramWithExemplars<S>
fn encode(&self, encoder: Encoder<'_, '_>) -> Result<(), Error>
fn metric_type(&self) -> MetricType
Auto Trait Implementations
impl<S> !RefUnwindSafe for HistogramWithExemplars<S>
impl<S> Send for HistogramWithExemplars<S>where
S: Send + Sync,
impl<S> Sync for HistogramWithExemplars<S>where
S: Send + Sync,
impl<S> Unpin for HistogramWithExemplars<S>
impl<S> !UnwindSafe for HistogramWithExemplars<S>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more