Skip to content

Commit

Permalink
FLS robustness for trace async
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Dec 4, 2024
1 parent 8960320 commit 3bf81a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/log/trace_async.ml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ let k_parent_scope : Trace.explicit_span Hmap.key = Hmap.Key.create ()

(** Set the parent scope by hand *)
let[@inline] set_parent_scope (sp : Trace.explicit_span) =
LS.set_in_local_hmap k_parent_scope sp
try LS.set_in_local_hmap k_parent_scope sp with _ -> ()

let[@inline] get_parent_scope () : Trace.explicit_span option =
LS.get_in_local_hmap_opt k_parent_scope
try LS.get_in_local_hmap_opt k_parent_scope with _ -> None

let add_exn_to_span (sp : Trace.explicit_span) (exn : exn)
(bt : Printexc.raw_backtrace) =
Expand Down

0 comments on commit 3bf81a5

Please sign in to comment.