mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-08 03:47:59 -04:00
feat: debug the library is set via OTEL_OCAML_DEBUG
This commit is contained in:
parent
51cebfd383
commit
9d4bb5a97f
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@ module Atomic = Opentelemetry_atomic.Atomic
|
|||
|
||||
let[@inline] (let@) f x = f x
|
||||
|
||||
let debug_ = ref (try bool_of_string @@ Sys.getenv "DEBUG" with _ -> false)
|
||||
let debug_ = ref (match Sys.getenv_opt "OTEL_OCAML_DEBUG" with Some ("1"|"true") -> true | _ -> false)
|
||||
|
||||
let lock_ : (unit -> unit) ref = ref ignore
|
||||
let unlock_ : (unit -> unit) ref = ref ignore
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue