Skip to main content

Module metrics

Module metrics 

Source

Macros§

counter
Records an increment to the named monotonic counter (as a u64) with the given attributes.
gauge_f64
Records the current value (as an f64) of the named gauge with the given attributes.
gauge_i64
Records the current value (as an i64) of the named gauge with the given attributes.
gauge_u64
Records the current value (as a u64) of the named gauge with the given attributes.
histogram_f64
Records an additional value (as an f64) to the distribution of the named histogram with the given attributes.
histogram_u64
Records an additional value (as a u64) to the distribution of the named histogram with the given attributes.
up_and_down_counter
Records a delta to the named counter (as an i64) with the given attributes.

Structs§

HistogramBuckets
A custom histogram bucketing for a named metric.