Struct LogHistogram
pub struct LogHistogram { /* private fields */ }
Available on
tokio_unstable and crate feature rt only.Log Histogram
This implements an H2 Histogram, a histogram similar to HdrHistogram, but with better performance. It guarantees an error bound of 2^-p.
Unlike a traditional H2 histogram this has two small changes:
- The 0th bucket runs for
0..min_value. This allows truncating a large number of buckets that would cover extremely short timescales that customers usually don’t care about. - The final bucket runs all the way to
u64::MAX— traditional H2 histograms would truncate or reject these values.
For information about the default configuration, see LogHistogramBuilder.
Implementations
impl LogHistogram
pub fn builder() -> LogHistogramBuilder
Creates a builder for LogHistogram
Trait Implementations
impl Clone for LogHistogram
fn clone(&self) -> LogHistogram
Returns a duplicate of the value. Read more
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more
impl Copy for LogHistogram
impl Debug for LogHistogram
impl Default for LogHistogram
impl Eq for LogHistogram
impl From<LogHistogramBuilder> for LogHistogram
fn from(value: LogHistogramBuilder) -> Self
Converts to this type from the input type.
impl PartialEq for LogHistogram
impl StructuralPartialEq for LogHistogram
Auto Trait Implementations
impl Freeze for LogHistogram
impl RefUnwindSafe for LogHistogram
impl Send for LogHistogram
impl Sync for LogHistogram
impl Unpin for LogHistogram
impl UnsafeUnpin for LogHistogram
impl UnwindSafe for LogHistogram
Blanket Implementations
impl<T> BorrowMut<T> for Twhere T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> CloneToUninit for Twhere T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)
impl<T> Instrument for T
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
impl<T> WithSubscriber for T
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
MIT License
Copyright © Tokio Contributors
https://docs.rs/tokio/1.53.1/tokio/runtime/struct.LogHistogram.html