Expand description
This module defines utility functions for interacting with Prometheus (logging metrics, etc)
Structs§
- Active
Measurement Guard - A guard for an active latency measurement.
Traits§
- Measure
Latency - An extension trait for metrics that can be used to measure latencies.
Functions§
- exponential_
bucket_ interval - Construct the bucket interval exponentially starting from a value and an ending value.
- exponential_
bucket_ latencies - Construct the latencies exponentially starting from 0.001 and ending at the maximum latency
- linear_
bucket_ interval - Construct the bucket interval linearly starting from a value and an ending value.
- register_
histogram_ vec - Wrapper around Prometheus
register_histogram_vec!
macro which also sets thelinera
namespace - register_
int_ counter_ vec - Wrapper around Prometheus register_int_counter_vec! macro which also sets the
linera
namespace