mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-08 03:47:59 -04:00
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
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:
parent
0c29da4302
commit
b92159c11e
1 changed files with 3 additions and 0 deletions
|
|
@ -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 ()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue