Expand description
Export commonly used parts of Cadence for easy glob imports
Example
use cadence::prelude::*;
use cadence::{StatsdClient, NopMetricSink};
let client = StatsdClient::from_sink("some.prefix", NopMetricSink);
client.count("some.counter", 1).unwrap();
client.time("some.timer", 23).unwrap();
client.gauge("some.gauge", 45).unwrap();
client.meter("some.meter", 67).unwrap();
client.histogram("some.histogram", 89).unwrap();
client.set("some.set", 123).unwrap();
Traits
Backwards compatibility shim for removed and deprecated methods.
Trait for incrementing and decrementing counters.
Trait for convenience methods for counters
Trait for recording distribution values.
Trait for recording gauge values.
Trait for recording histogram values.
Trait for recording meter values.
Trait that encompasses all other traits for sending metrics.
Trait for recording set values.
Trait for recording timings in milliseconds.