Skip to main content

Module metrics

Module metrics 

Source
Expand description

Server metrics abstraction.

Provides a unified metrics interface that works with or without the otel feature. When otel is enabled, metrics are recorded via OpenTelemetry instruments. When disabled, they proxy to the existing ServerState atomics.

Structsยง

DurationTimer
Timer for measuring operation duration.
ServerMetrics
Server metrics collector.