This commit is contained in:
Simon Cruanes 2025-12-25 01:20:49 -05:00
parent f8269ed1c8
commit 3b6e239c17
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -129,7 +129,12 @@ let setup ?config ?(enable = true) () = if enable then setup_ ?config ()
let remove_exporter () : unit Lwt.t =
let done_fut, done_u = Lwt.wait () in
Main_exporter.remove ~on_done:(fun () -> Lwt.wakeup_later done_u ()) ();
(* Printf.eprintf "otel.client.cohttp-lwt: removing…\n%!"; *)
Main_exporter.remove
~on_done:(fun () ->
(* Printf.eprintf "otel.client.cohttp-lwt: done removing\n%!"; *)
Lwt.wakeup_later done_u ())
();
done_fut
let remove_backend = remove_exporter