Trait cadence::Histogrammed [] [src]

pub trait Histogrammed {
    fn histogram(&self, key: &str, value: u64) -> MetricResult<Histogram>;
}

Trait for recording histogram values.

Histogram values are positive values that can represent anything, whose statistical distribution is calculated by the server. The values can be timings, amount of some resource consumed, size of HTTP responses in some application, etc. Histograms can be thought of as a more general form of timers. They are an extension to the Statsd protocol so you should check if your server supports them before using them.

See the Statsd spec for more information.

Required Methods

Record a single histogram value with the given key

Implementors