Struct prometheus::local::LocalHistogram [] [src]

pub struct LocalHistogram { /* fields omitted */ }

LocalHistogram is used for performance and in single-thread. Sometimes, if you very care the performance, you can use the LocalHistogram and then flush the metric interval.

Methods

impl LocalHistogram
[src]

observe adds a single observation to the Histogram.

start_timer returns a LocalHistogramTimer to track a duration.

clear clears the local metric.

flush flushes the local metric to the Histogram metric.

Trait Implementations

impl Clone for LocalHistogram
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Drop for LocalHistogram
[src]

A method called when the value goes out of scope. Read more