From dafd06a2fe48be1575d8b8c65c926cb9f3fd4e86 Mon Sep 17 00:00:00 2001 From: c-cube Date: Mon, 8 Sep 2025 16:27:32 +0000 Subject: [PATCH] deploy: 85b6126b782a3012983fdcf508b5106b9379b0d7 --- opentelemetry/Opentelemetry_client/Batch/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opentelemetry/Opentelemetry_client/Batch/index.html b/opentelemetry/Opentelemetry_client/Batch/index.html index 27867962..8c801ea2 100644 --- a/opentelemetry/Opentelemetry_client/Batch/index.html +++ b/opentelemetry/Opentelemetry_client/Batch/index.html @@ -5,4 +5,4 @@ ?now:Mtime.t -> ?timeout:Mtime.span -> unit -> - 'a t

make () is a new batch

val pop_if_ready : ?force:bool -> now:Mtime.t -> 'a t -> 'a list option

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

  • batching is disabled, and any elements have been batched, or batching was enabled and at least batch elements have been pushed, or
  • a timeout was provided, and more than a timeout span has passed since the last pop was ready, or
  • the pop is forced,
  • parameter now

    the current time

  • parameter force

    override the other batch conditions, for when when we just want to emit batches before exit or because the user asks for it

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]. )

+ 'a t

make () is a new batch

val pop_if_ready : ?force:bool -> now:Mtime.t -> 'a t -> 'a list option

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

  • batching is disabled, and any elements have been batched, or batching was enabled and at least batch elements have been pushed, or
  • a timeout was provided, and more than a timeout span has passed since the last pop was ready, or
  • the pop is forced,
  • parameter now

    the current time

  • parameter force

    override the other batch conditions, for when when we just want to emit batches before exit or because the user asks for it

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}. )