This commit is contained in:
Simon Cruanes 2025-12-25 23:20:18 -05:00
parent 6ddfe1715a
commit f5a13a1248
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -165,6 +165,7 @@ let wrap_emitter (self : _ t) (e : _ Emitter.t) : _ Emitter.t =
let emit l = let emit l =
if l <> [] && not (Atomic.get closed_here) then ( if l <> [] && not (Atomic.get closed_here) then (
(* Printf.eprintf "otel.batch.add %d items\n%!" (List.length l); *)
push' self l; push' self l;
(* we only check for size here, not for timeout. The [tick] function is (* we only check for size here, not for timeout. The [tick] function is