Tiny_httpd_prometheus.RegistryRegistry for metrics.
val create : unit -> tval on_will_emit : t -> (unit -> unit) -> uniton_will_emit registry f calls f() every time emit buf registry is called (before the metrics start being emitted). This is useful to update some metrics on demand.
val emit : Stdlib.Buffer.t -> t -> unitWrite metrics into the given buffer. The buffer will be cleared first thing.
val emit_str : t -> string