mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-08 03:47:59 -04:00
Use dummies
This commit is contained in:
parent
52377b0a03
commit
b303fb5b1c
1 changed files with 2 additions and 2 deletions
|
|
@ -4,9 +4,9 @@ let enabled = Atomic.make true
|
|||
|
||||
let add_event (scope : OT.Scope.t) ev = OT.Scope.add_event scope (fun () -> ev)
|
||||
|
||||
let dummy_trace_id_ = OT.Trace_id.create ()
|
||||
let dummy_trace_id_ = OT.Trace_id.dummy
|
||||
|
||||
let dummy_span_id = OT.Span_id.create ()
|
||||
let dummy_span_id = OT.Span_id.dummy
|
||||
|
||||
let with_ ?kind ?attrs name f =
|
||||
if Atomic.get enabled then
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue