mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-09 12:23:32 -04:00
11 lines
230 B
OCaml
11 lines
230 B
OCaml
(** Per-provider batching configuration. *)
|
|
|
|
type t = {
|
|
batch: int option;
|
|
timeout: Mtime.Span.t;
|
|
}
|
|
|
|
let make ?(batch : int option) ?(timeout = Mtime.Span.(2_000 * ms)) () : t =
|
|
{ batch; timeout }
|
|
|
|
let default : t = make ()
|