mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-07 18:37:56 -05:00
Add comment about scope
This commit is contained in:
parent
b303fb5b1c
commit
a5617571f4
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ let with_ ?kind ?attrs name f =
|
|||
if Atomic.get enabled then
|
||||
OT.Trace.with_ ?kind ?attrs name f
|
||||
else (
|
||||
(* do nothing *)
|
||||
(* A new scope is needed here because it might be modified *)
|
||||
let scope =
|
||||
OT.Scope.make ~trace_id:dummy_trace_id_ ~span_id:dummy_span_id ()
|
||||
in
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue