This commit is contained in:
Simon Cruanes 2025-12-09 22:46:40 -05:00
parent fda87007a8
commit dd29cddb21
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -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