mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-05-05 17:04:52 -04:00
better warning in bounded_queue_sync
This commit is contained in:
parent
e9bb76edd1
commit
7a93a2582b
1 changed files with 3 additions and 2 deletions
|
|
@ -101,8 +101,9 @@ let push (self : _ state) x =
|
|||
if num_discarded > 0 then (
|
||||
ignore (Atomic.fetch_and_add self.n_discarded num_discarded : int);
|
||||
Opentelemetry.Self_debug.log Warning (fun () ->
|
||||
Printf.sprintf "otel: dropped %d signals (exporter queue full)"
|
||||
num_discarded)
|
||||
Printf.sprintf
|
||||
"otel: dropped %d signals (exporter queue full at %d)"
|
||||
num_discarded self.high_watermark)
|
||||
);
|
||||
(* wake up potentially asleep consumers *)
|
||||
Cb_set.trigger self.on_non_empty
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue