Type Alias Counter

Source
pub type Counter = Family<Label, Counter>;
Expand description

A counter metric with a status label.

Aliased Type§

struct Counter { /* private fields */ }

Trait Implementations§

Source§

impl CounterExt for Counter

Source§

fn guard(&self, status: Status) -> CounterGuard

Create a new CounterGuard with a given status.

Source§

fn inc(&self, status: Status)

Increment the metric with a given status.