mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-09 12:23:32 -04:00
config: more comments; make Config.t private
forcing users to use `Config.make` to build a new config means we can add fields without breaking existing code.
This commit is contained in:
parent
59c1d7254c
commit
85b6e91615
1 changed files with 5 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
type t = {
|
type t = private {
|
||||||
debug: bool;
|
debug: bool;
|
||||||
url: string;
|
url: string;
|
||||||
(** Url of the endpoint. Default is "http://localhost:4318",
|
(** Url of the endpoint. Default is "http://localhost:4318",
|
||||||
|
|
@ -35,6 +35,10 @@ type t = {
|
||||||
sure it makes progress, and regularly send events to the collector.
|
sure it makes progress, and regularly send events to the collector.
|
||||||
This option is ignored if [thread=false]. *)
|
This option is ignored if [thread=false]. *)
|
||||||
}
|
}
|
||||||
|
(** Configuration.
|
||||||
|
|
||||||
|
To build one, use {!make} below. This might be extended with more
|
||||||
|
fields in the future. *)
|
||||||
|
|
||||||
val make :
|
val make :
|
||||||
?debug:bool ->
|
?debug:bool ->
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue