Imandrakit_metrics
Set of metrics
val pp_kind :
Ppx_deriving_runtime.Format.formatter ->
kind ->
Ppx_deriving_runtime.unit
val show_kind : kind -> Ppx_deriving_runtime.string
module Counter : sig ... end
A counter, increasing monotonically
module Gauge : sig ... end
A gauge, representing some value fluctuating over time
Register a function to be called every time metrics are about to be emitted
val iter_all :
int:(kind -> string -> int -> unit) ->
float:(kind -> string -> float -> unit) ->
unit ->
unit
Iterate on all metrics. This first calls every callback registered to add_on_refresh
.