Trait dipstick::MetricWriter [] [src]

pub trait MetricWriter<M: MetricKey>: Send + Debug {
    fn write(&self, metric: &M, value: Value);

    fn flush(&self) { ... }
}

A sink-specific target for writing metrics to.

Required Methods

Write a single metric value

Provided Methods

Some sinks may have buffering capability. Flushing makes sure all previously written metrics are propagated down the sink chain and to any applicable external outputs.

Implementors