mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-08 03:47:59 -04:00
Rename Env sig to ENV
This commit is contained in:
parent
75a8b95176
commit
ec0efec681
4 changed files with 6 additions and 8 deletions
|
|
@ -9,4 +9,4 @@ val pp : Format.formatter -> t -> unit
|
|||
val make : (unit -> t) Client.Config.make
|
||||
(** Make a configuration {!t}. *)
|
||||
|
||||
module Env : Client.Config.Env
|
||||
module Env : Client.Config.ENV
|
||||
|
|
|
|||
|
|
@ -32,4 +32,4 @@ val make :
|
|||
Client.Config.make
|
||||
(** Make a configuration {!t}. *)
|
||||
|
||||
module Env : Client.Config.Env
|
||||
module Env : Client.Config.ENV
|
||||
|
|
|
|||
|
|
@ -10,8 +10,6 @@ type t = {
|
|||
batch_timeout_ms: int;
|
||||
self_trace: bool;
|
||||
}
|
||||
(** Constructing and managing the configuration needed in common by all clients
|
||||
*)
|
||||
|
||||
let pp out (self : t) : unit =
|
||||
let ppiopt = Format.pp_print_option Format.pp_print_int in
|
||||
|
|
@ -52,7 +50,7 @@ type 'k make =
|
|||
?self_trace:bool ->
|
||||
'k
|
||||
|
||||
module type Env = sig
|
||||
module type ENV = sig
|
||||
val get_debug : unit -> bool
|
||||
|
||||
val set_debug : bool -> unit
|
||||
|
|
@ -64,7 +62,7 @@ module type Env = sig
|
|||
val make : (t -> 'a) -> 'a make
|
||||
end
|
||||
|
||||
module Env () : Env = struct
|
||||
module Env () : ENV = struct
|
||||
let debug_ =
|
||||
ref
|
||||
(match Sys.getenv_opt "OTEL_OCAML_DEBUG" with
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ type 'k make =
|
|||
|
||||
(** Construct, inspect, and update {!t} configurations, drawing defaults from
|
||||
the environment and encapsulating state *)
|
||||
module type Env = sig
|
||||
module type ENV = sig
|
||||
val get_debug : unit -> bool
|
||||
|
||||
val set_debug : bool -> unit
|
||||
|
|
@ -124,4 +124,4 @@ end
|
|||
(** A generative functor that produces a state-space that can read configuration
|
||||
values from the environment, provide stateful configuration setting and
|
||||
accessing operations, and a way to make a new {!t} configuration record *)
|
||||
module Env : functor () -> Env
|
||||
module Env : functor () -> ENV
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue