Module Opentelemetry.Provider_config

Per-provider batching configuration.

type t = {
  1. batch : int option;
    (*

    Batch size (number of items). None means unbatched (immediate emit).

    *)
  2. timeout : Mtime.Span.t;
    (*

    Timeout between automatic batch flushes.

    *)
}
val make : ?batch:int -> ?timeout:Mtime.Span.t -> unit -> t

Create a provider config.

  • parameter batch

    batch size. None (the default) means no batching.

  • parameter timeout

    flush timeout. Default: 2000ms

val default : t

Default provider config: no batching, 2s timeout.