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

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<()>[src]

Records a given value.

Loading content...

Implementations on Foreign Types

impl<T: Histogram> Histogram for Rc<T>[src]

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

Records a given value.

Loading content...

Implementors

Loading content...