Module Metrics.Rpc

val update_metrics : string -> string -> (unit -> Cohttp_lwt_unix.Server.response_action Lwt.t) -> Cohttp_lwt_unix.Server.response_action Lwt.t

update_metrics uri method_name callback updates the metrics related to the given uri and more specifically the given method_name.

This function is expected to be passed as an argument of Tezos_rpc_http_server.RPC_middleware.rpc_metrics_transform_callback.