add Meter_provider.emit_l
Some checks are pending
format / format (push) Waiting to run
build / build (4.08.x, ubuntu-latest) (push) Waiting to run
build / build (4.13.x, ubuntu-latest) (push) Waiting to run
build / build (5.0.x, ubuntu-latest) (push) Waiting to run
build / build (5.3.x, ubuntu-latest) (push) Waiting to run

This commit is contained in:
Simon Cruanes 2026-03-05 15:20:38 -05:00
parent 0c29da4302
commit b92159c11e
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -46,6 +46,9 @@ let get_meter ?name ?version ?(attrs : (string * [< Value.t ]) list = [])
(** Emit with current meter *) (** Emit with current meter *)
let[@inline] emit (m : Metrics.t) : unit = Emitter.emit (get ()).emit [ m ] let[@inline] emit (m : Metrics.t) : unit = Emitter.emit (get ()).emit [ m ]
(** Emit a list of metrics with current meter *)
let[@inline] emit_l (ms : Metrics.t list) : unit = Emitter.emit (get ()).emit ms
(** A Meter.t that lazily reads the global at emit time *) (** A Meter.t that lazily reads the global at emit time *)
let default_meter : Meter.t = get_meter () let default_meter : Meter.t = get_meter ()