Available on crate feature
std only.Expand description
Cold-path snapshot of the observability state.
Reads every hot-path atomic with Ordering::Relaxed and exposes the
values in a Clone-able plain struct suitable for FFI, logging, and
debugging. Per-leg breakdown is preserved so consumers can compute their
own slices.
Scope: this struct mirrors the lock-free HotPathAtomics only — packet /
byte / timing totals, the session/stream gauges, and the handshake
sum+count fields. The security-signal counters and the latency histograms
are OTel-instrument state (see instruments.rs), so they are NOT reflected
here; consume those through the OTel pipeline. The snapshot is always
available regardless of the telemetry-otel feature, since the atomics
always exist.
Structs§
- Metrics
Snapshot - Immutable cold-path snapshot of the hot-path atomics.