Crate metrics_util[−][src]
Expand description
Helper types and functions used within the metrics ecosystem.
Modules
layers | Layers are composable helpers that can be “layered” on top of an existing |
Structs
AtomicBucket | A lock-free bucket with snapshot capabilities. |
CompositeKey | A composite key that stores both the metric key and the metric kind. |
DebuggingRecorder | A simplistic recorder that can be installed and used for debugging or testing. |
Generation | Generation counter. |
Histogram | A bucketed histogram. |
MetricKindMask | Metric kind mask. |
NotTracked | A generational wrapper that does not track the generation. |
Quantile | A quantile that has both the raw value and a human-friendly display label. |
Recency | Tracks recency of metric updates by their registry generation and time. |
Registry | A high-performance metric registry. |
Snapshotter | Captures point-in-time snapshots of |
Summary | A quantile sketch with relative-error guarantees. |
Tracked | A generational wrapper that does track the generation. |
Enums
DebugValue | A point-in-time value for a metric exposing raw values. |
Handle | Basic metric handle. |
MetricKind | Metric kind. |
Traits
Generational | A trait that defines generational semantics for wrapper types. |
Hashable | A type that can hash itself. |
Functions
parse_quantiles | Parses a slice of floating-point values into a vector of |