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§
Source§impl<S> Clone for HistogramWithExemplars<S>
impl<S> Clone for HistogramWithExemplars<S>
Source§impl<S: Encode> EncodeMetric for HistogramWithExemplars<S>
impl<S: Encode> EncodeMetric for HistogramWithExemplars<S>
Auto Trait Implementations§
impl<S> Freeze for HistogramWithExemplars<S>
impl<S> RefUnwindSafe for HistogramWithExemplars<S>
impl<S> Send for HistogramWithExemplars<S>
impl<S> Sync for HistogramWithExemplars<S>
impl<S> Unpin for HistogramWithExemplars<S>
impl<S> UnwindSafe for HistogramWithExemplars<S>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more