change default batch size for metrics

This commit is contained in:
Simon Cruanes 2025-12-11 23:15:15 -05:00
parent 9e1165918a
commit 26bc862940
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4
2 changed files with 4 additions and 4 deletions

View file

@ -132,7 +132,7 @@ module Env () : ENV = struct
let set_headers s = headers := s
let make k ?(debug = get_debug ()) ?url ?url_traces ?url_metrics ?url_logs
?(batch_traces = Some 400) ?(batch_metrics = Some 20)
?(batch_traces = Some 400) ?(batch_metrics = Some 200)
?(batch_logs = Some 400) ?(headers = get_headers ())
?(batch_timeout_ms = 2_000) ?(self_trace = false) ?http_concurrency_level
=

View file

@ -20,7 +20,7 @@ type t = private {
[i] items. If [None], there is no batching.
Note that traces and metrics are batched separately. Default
[Some 20]. *)
[Some 200]. *)
batch_logs: int option;
(** Batch logs? See {!batch_metrics} for details. Default [Some 400] *)
batch_timeout_ms: int;
@ -29,8 +29,8 @@ type t = private {
this is only checked when a new event occurs or when a tick is
emitted. Default 2_000. *)
self_trace: bool;
(** If true, the OTEL library will also emit its own spans. Default
[false].
(** If true, the OTEL library will perform some self-instrumentation.
Default [false].
@since 0.7 *)
http_concurrency_level: int option;
(** How many HTTP requests can be done simultaneously (at most)?