Function dipstick::publish [] [src]

pub fn publish<S: MetricSink + Sync>(
    source: AggregateSource,
    sink: S
) -> AggregatePublisher<S>

Publishes all metrics from a source to a backend.

use dipstick::*;

let (sink, source) = aggregate();
let publisher = publish(source, log("aggregated"));

publisher.publish()