Module metrics

Module metrics 

Source

Structs§

ACTIVE_CONNECTIONS
REGISTRY
RPC_REQUESTS_TOTAL
RPC_REQUEST_DURATION_SECONDS
TOOL_CALLS_TOTAL

Functions§

decrement_active_connections
Decrement active connections
get_metrics_as_string
Get all metrics as a string
increment_active_connections
Increment active connections
init_metrics
Initialize all metrics and register them with the Prometheus registry
record_rpc_request
Record an RPC request with its duration
record_tool_call
Record a tool call