Opentelemetry_client.BatchA thread-safe batch of resources to be popper when ready .
val make :
?batch:int ->
?high_watermark:int ->
?now:Mtime.t ->
?timeout:Mtime.span ->
unit ->
'a tmake () is a new batch
pop_if_ready ~now b is Some xs, where is xs includes all the elements pushed since the last batch, if the batch ready to be emitted.
A batch is ready to pop if it contains some elements and
batch elements have been pushed, ortimeout was provided, and more than a timeout span has passed since the last pop was ready, orforced,val push : 'a t -> 'a list -> [ `Dropped | `Ok ]push b xs is `Ok if it succeeds in pushing the values in xs into the batch b, or `Dropped if the current size of the batch has exceeded the high water mark determined by the batch argument to {!make}. )