Instrumentation for
Library opentelemetry
val register : ( unit -> Metrics.t list ) -> unit

register f adds the callback f to the list.

f will be called at unspecified times and is expected to return a list of metrics. It might be called regularly by the backend, in particular (but not only) when Collector.tick is called.