Type Alias metriken::LazyCounter

source ·
pub type LazyCounter = Lazy<Counter>;
Expand description

A counter holds a unsigned 64bit monotonically non-decreasing value. The counter behavior is to wrap on overflow.

Common examples are the number of operations (requests, reads, …) or errors.

Unlike a standard Counter, a LazyCounter will not report a value unless it has been initialized by writing to at least once. This is useful for when you want to declare metrics statically, but only report metrics that are being used.

Aliased Type§

struct LazyCounter { /* private fields */ }