pub struct HistogramConfig {
pub boundaries: Vec<f64>,
}Expand description
Explicit bucket boundaries (in seconds) for latency histograms
({ns}.handshake.duration, {ns}.path.validation.duration).
Applied directly to the OTel Histogram instrument via
f64_histogram(...).with_boundaries(...) — a version-stable API across
the opentelemetry 0.27–0.32 line. (Base-2 exponential aggregation
would need an SDK View; the View API is still in flux across these
versions, so explicit boundaries are the supported choice for now.)
Fields§
§boundaries: Vec<f64>Bucket upper bounds, seconds, ascending.
Trait Implementations§
Source§impl Clone for HistogramConfig
impl Clone for HistogramConfig
Source§fn clone(&self) -> HistogramConfig
fn clone(&self) -> HistogramConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HistogramConfig
impl Debug for HistogramConfig
Auto Trait Implementations§
impl Freeze for HistogramConfig
impl RefUnwindSafe for HistogramConfig
impl Send for HistogramConfig
impl Sync for HistogramConfig
impl Unpin for HistogramConfig
impl UnsafeUnpin for HistogramConfig
impl UnwindSafe for HistogramConfig
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