Crate metrics_util
source · [−]Expand description
Helper types and functions used within the metrics ecosystem.
Modules
Layers are composable helpers that can be “layered” on top of an existing Recorder
to enhance
or alter its behavior as desired, without having to change the recorder implementation itself.
Metric recency.
Structs
A lock-free bucket with snapshot capabilities.
A composite key that stores both the metric key and the metric kind.
A simplistic recorder that can be installed and used for debugging or testing.
A bucketed histogram.
Metric kind mask.
A quantile that has both the raw value and a human-friendly display label.
A high-performance metric registry.
Captures point-in-time snapshots of DebuggingRecorder
.
Standard metric primitives that fit most use cases.
A quantile sketch with relative-error guarantees.
Enums
A point-in-time value for a metric exposing raw values.
Metric kind.
Traits
A type that can hash itself.
Functions
Parses a slice of floating-point values into a vector of Quantile
s.