mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-08 03:47:59 -04: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
|
if Atomic.get enabled then
|
||||||
OT.Trace.with_ ?kind ?attrs name f
|
OT.Trace.with_ ?kind ?attrs name f
|
||||||
else (
|
else (
|
||||||
(* do nothing *)
|
(* A new scope is needed here because it might be modified *)
|
||||||
let scope =
|
let scope =
|
||||||
OT.Scope.make ~trace_id:dummy_trace_id_ ~span_id:dummy_span_id ()
|
OT.Scope.make ~trace_id:dummy_trace_id_ ~span_id:dummy_span_id ()
|
||||||
in
|
in
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue