Expand description
Telemetry — windowed/session aggregation of per-op metrics.
One ingest path (Aggregator::record), one shape out (Snapshot). A
metric is identified by its &'static str name in the metrics catalog;
window and session are retention horizons over the same Vitter reservoirs.
The per-step hot scalar endpoint_total_ns is the wire contract, not part
of this system — it is recorded here like any other Duration sample
(metrics::ENDPOINT_TOTAL).
Modules§
- metrics
- The metric catalog — adding a metric is one const here (plus
ALL).
Structs§
- Aggregator
- Windowed / session metric aggregator. One
recordin,snapshotout. - Metric
- A metric’s identity (
name) +kind. Defined only in themetricscatalog. - Row
- One aggregated metric row.
avg/p*are in the metric’s unit (ms or bytes). - Sample
- One observation — the only thing
Aggregator::recordingests. - Snapshot
- A point-in-time aggregate for one horizon — the one shape every consumer sees.
- Source
- Who produced a sample: an
operationon acomponent.