Crate metrics_util[][src]

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.

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.

Generation counter.

A bucketed histogram.

Metric kind mask.

A generational wrapper that does not track the generation.

A quantile that has both the raw value and a human-friendly display label.

Tracks recency of metric updates by their registry generation and time.

A high-performance metric registry.

Captures point-in-time snapshots of DebuggingRecorder.

A quantile sketch with relative-error guarantees.

A generational wrapper that does track the generation.

Enums

A point-in-time value for a metric exposing raw values.

Basic metric handle.

Metric kind.

Traits

A trait that defines generational semantics for wrapper types.

A type that can hash itself.

Functions

Parses a slice of floating-point values into a vector of Quantiles.