This commit is contained in:
Simon Cruanes 2025-12-10 11:33:29 -05:00
parent 4e0d59d3f4
commit 212ff39d0b
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -104,7 +104,9 @@ end = struct
}
in
(* if [exporter] turns off, shut us down too *)
(* if [exporter] turns off, shut us down too. Note that [shutdown]
is idempotent so it won't lead to divergence when it shuts the
exporter down. *)
Aswitch.on_turn_off (OTEL.Exporter.active exporter) (fun () ->
shutdown self);