Trait opentelemetry::sdk::export::metrics::aggregation::Histogram
source · pub trait Histogram: Sum + Count + Min + Max + Aggregation {
// Required method
fn histogram(&self) -> Result<Buckets, MetricsError>;
}
Available on crate feature
metrics
only.Expand description
Histogram returns the count of events in pre-determined buckets.
Required Methods§
sourcefn histogram(&self) -> Result<Buckets, MetricsError>
fn histogram(&self) -> Result<Buckets, MetricsError>
Buckets for this histogram.