mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-08 03:47:59 -04:00
detail
This commit is contained in:
parent
fda87007a8
commit
dd29cddb21
1 changed files with 5 additions and 3 deletions
|
|
@ -175,11 +175,13 @@ let () =
|
||||||
elapsed n_per_sec
|
elapsed n_per_sec
|
||||||
in
|
in
|
||||||
let after_exp_shutdown exp =
|
let after_exp_shutdown exp =
|
||||||
if !final_stats then
|
(* print some stats *)
|
||||||
(* print some stats *)
|
if !final_stats then (
|
||||||
|
let ms = OT.Exporter.self_metrics exp in
|
||||||
Format.eprintf "@[exporter metrics:@ %a@]@."
|
Format.eprintf "@[exporter metrics:@ %a@]@."
|
||||||
(Format.pp_print_list Opentelemetry.Metrics.pp)
|
(Format.pp_print_list Opentelemetry.Metrics.pp)
|
||||||
(OT.Exporter.self_metrics exp)
|
ms
|
||||||
|
)
|
||||||
in
|
in
|
||||||
|
|
||||||
let@ () = Fun.protect ~finally in
|
let@ () = Fun.protect ~finally in
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue