Add comment about scope

This commit is contained in:
Shon Feder 2025-06-18 18:33:46 -04:00
parent b303fb5b1c
commit a5617571f4
No known key found for this signature in database

View file

@ -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