mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-08 20:07:55 -04:00
fix in otel-lwt related to termination
Main_exporter.remove needs to actually shutdown the exporter, not just create a promise that resolves when it's shutdown another way
This commit is contained in:
parent
bef4bd88b2
commit
14cd25d289
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ module Main_exporter = struct
|
||||||
|
|
||||||
let remove () : unit Lwt.t =
|
let remove () : unit Lwt.t =
|
||||||
let p, resolve = Lwt.wait () in
|
let p, resolve = Lwt.wait () in
|
||||||
Aswitch.on_turn_off (active ()) (fun () -> Lwt.wakeup_later resolve ());
|
remove () ~on_done:(fun () -> Lwt.wakeup_later resolve ());
|
||||||
p
|
p
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue