richat_shared::metrics

Function spawn_server

Source
pub async fn spawn_server(
    __arg0: ConfigPrometheus,
    gather_metrics: impl Fn() -> Vec<MetricFamily> + Clone + Send + 'static,
    shutdown: impl Future<Output = ()> + Send + 'static,
) -> Result<impl Future<Output = Result<(), JoinError>>>