[][src]Trait envoy_sdk::host::stats::Histogram

pub trait Histogram {
    fn record(&self, value: u64) -> Result<()>;
}

An interface of the Envoy Histogram.

A Histogram records values one at a time.

Examples

Basic usage of Histogram:

use envoy::host::Stats;

let stats = Stats::default();

let response_times_millis = stats.histogram("response_times_millis")?;

response_times_millis.record(123)?;

Required methods

fn record(&self, value: u64) -> Result<()>

Records a given value.

Loading content...

Implementors

Loading content...