Library
Module
Module type
Parameter
Class
Class type
type t = private {
debug : bool;
url_traces : string;
Url to send traces
*)url_metrics : string;
Url to send metrics
*)url_logs : string;
Url to send logs
*)headers : (string * string) list;
API headers sent to the endpoint. Default is none or "OTEL_EXPORTER_OTLP_HEADERS" if set.
*)batch_traces : int option;
Batch traces? If Some i
, then this produces batches of (at most) i
items. If None
, there is no batching.
Note that traces and metrics are batched separately. Default Some 400
.
batch_metrics : int option;
Batch metrics? If Some i
, then this produces batches of (at most) i
items. If None
, there is no batching.
Note that traces and metrics are batched separately. Default None
.
batch_logs : int option;
batch_timeout_ms : int;
Number of milliseconds after which we will emit a batch, even incomplete. Note that the batch might take longer than that, because this is only checked when a new event occurs. Default 500.
*)}
Configuration.
To build one, use make
below. This might be extended with more fields in the future.
val make :
?debug:bool ->
?url:string ->
?url_traces:string ->
?url_metrics:string ->
?url_logs:string ->
?headers:(string * string) list ->
?batch_traces:int option ->
?batch_metrics:int option ->
?batch_logs:int option ->
?batch_timeout_ms:int ->
unit ->
t
Make a configuration.
val pp : Format.formatter -> t -> unit