lwt: trace the function that performs actions in batch

This commit is contained in:
Simon Cruanes 2024-02-14 21:26:37 -05:00
parent 36c6e8e900
commit b991a78f3e
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -64,6 +64,11 @@ module Perform_action_in_lwt = struct
(** Gets the current set of notifications and perform them from inside the
Lwt thread *)
let perform_pending_actions () : unit =
let@ _sp =
Moonpool.Private.Tracing_.with_span
"moonpool-lwt.perform-pending-actions"
in
let l = Action_queue.pop_all actions_ in
List.iter Action.perform l