pub type LazyGauge = Lazy<Gauge>;
Expand description
A gauge holds a signed 64-bit value and is used to represent metrics which may increase or decrease in value. The behavior is to wrap around on overflow and underflow.
Common examples are queue depths, temperatures, and usage metrics.
Unlike a standard Gauge
, a LazyGauge
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 LazyGauge { /* private fields */ }