mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-08 03:47:59 -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;
|
||||
url: string;
|
||||
(** 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.
|
||||
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 :
|
||||
?debug:bool ->
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue