mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-07 18:37:56 -05:00
change default batch size for metrics
This commit is contained in:
parent
9e1165918a
commit
26bc862940
2 changed files with 4 additions and 4 deletions
|
|
@ -132,7 +132,7 @@ module Env () : ENV = struct
|
||||||
let set_headers s = headers := s
|
let set_headers s = headers := s
|
||||||
|
|
||||||
let make k ?(debug = get_debug ()) ?url ?url_traces ?url_metrics ?url_logs
|
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_logs = Some 400) ?(headers = get_headers ())
|
||||||
?(batch_timeout_ms = 2_000) ?(self_trace = false) ?http_concurrency_level
|
?(batch_timeout_ms = 2_000) ?(self_trace = false) ?http_concurrency_level
|
||||||
=
|
=
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ type t = private {
|
||||||
[i] items. If [None], there is no batching.
|
[i] items. If [None], there is no batching.
|
||||||
|
|
||||||
Note that traces and metrics are batched separately. Default
|
Note that traces and metrics are batched separately. Default
|
||||||
[Some 20]. *)
|
[Some 200]. *)
|
||||||
batch_logs: int option;
|
batch_logs: int option;
|
||||||
(** Batch logs? See {!batch_metrics} for details. Default [Some 400] *)
|
(** Batch logs? See {!batch_metrics} for details. Default [Some 400] *)
|
||||||
batch_timeout_ms: int;
|
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
|
this is only checked when a new event occurs or when a tick is
|
||||||
emitted. Default 2_000. *)
|
emitted. Default 2_000. *)
|
||||||
self_trace: bool;
|
self_trace: bool;
|
||||||
(** If true, the OTEL library will also emit its own spans. Default
|
(** If true, the OTEL library will perform some self-instrumentation.
|
||||||
[false].
|
Default [false].
|
||||||
@since 0.7 *)
|
@since 0.7 *)
|
||||||
http_concurrency_level: int option;
|
http_concurrency_level: int option;
|
||||||
(** How many HTTP requests can be done simultaneously (at most)?
|
(** How many HTTP requests can be done simultaneously (at most)?
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue