Module metrics

Source
Expand description

Metric types and structures for the monitoring system

This module defines the various metric types supported by the monitoring framework, including counters, gauges, histograms, and latency tracking.

Structs§

AggregatedMetric
Aggregated metrics for efficient storage and transmission
Counter
A counter metric that only increases
Gauge
A gauge metric that can go up or down
Histogram
A histogram metric for recording distributions
LatencyTracker
A latency tracking metric optimized for timing measurements
MetricsSnapshot
Metrics snapshot for persistence

Enums§

Metric
Unified metric type that can hold any metric variant
MetricType
The type of metric being recorded

Type Aliases§

MetricName
A metric name optimized for small strings
SerializableMetricName
A metric name for bincode-serialized structures (uses String for compatibility)