Module server

Module server 

Source
Expand description

HTTP server for exposing Prometheus metrics.

This module is conditionally compiled only for non-wasm targets because it depends on axum and tokio networking features which are not available in wasm environments. The core metrics functionality (registration, encoding) remains available on all platforms via the parent module.

Functionsยง

get_metrics_handler ๐Ÿ”’
spawn_api_server
Spawns an HTTP server that exposes Prometheus metrics on /metrics.