pub trait StatsdClientExt {
// Required methods
fn incr(&self, metric: MetricName) -> MetricResult<Counter>;
fn incr_raw(&self, metric: &str) -> MetricResult<Counter>;
fn incr_with_tags(
&self,
metric: MetricName,
) -> MetricBuilder<'_, '_, Counter>;
}
Expand description
Extension trait for StatsdClient to provide enum-based metric methods
Required Methods§
Sourcefn incr(&self, metric: MetricName) -> MetricResult<Counter>
fn incr(&self, metric: MetricName) -> MetricResult<Counter>
Increment a counter using a MetricName enum
Sourcefn incr_raw(&self, metric: &str) -> MetricResult<Counter>
fn incr_raw(&self, metric: &str) -> MetricResult<Counter>
Increment a counter using a raw string metric name
Start a counter with tags using a MetricName enum