Module metrics

Module metrics 

Source
Expand description

Prometheus metric definitions — counters, histograms, gauges.

Feature-gated behind metrics. When disabled, all functions compile to no-ops.

Functions§

record_audio_latency
Record audio send latency (no-op without metrics feature).
record_http_request
Record an HTTP REST API request (no-op without metrics feature).
record_jitter_depth
Record current jitter buffer depth (no-op without metrics feature).
record_jitter_underrun
Record a jitter buffer underrun (no-op without metrics feature).
record_reconnection
Record a reconnection attempt (no-op without metrics feature).
record_response_latency
Record time from end-of-speech to first model response (no-op without metrics feature).
record_session_connected
Record a new session connection (no-op without metrics feature).
record_session_disconnected
Record a session disconnection (no-op without metrics feature).
record_tool_call
Record a tool call execution (no-op without metrics feature).
record_vad_event
Record a VAD event (no-op without metrics feature).
record_ws_bytes_received
Record WebSocket bytes received (no-op without metrics feature).
record_ws_bytes_sent
Record WebSocket bytes sent (no-op without metrics feature).