Module Imandrakit_metrics

Set of metrics

type kind =
  1. | Counter
  2. | Gauge
module Counter : sig ... end

A counter, increasing monotonically

module Gauge : sig ... end

A gauge, representing some value fluctuating over time

val add_on_refresh : (unit -> unit) -> unit

Register a function to be called every time metrics are about to be emitted

val add_gc_metrics : unit -> unit

Register some standard metrics for the GC

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.

val emit_trace : unit -> unit

Emit into trace as int and float counters