Observe_lwt_unix.Testexception Capture_error of Observe.capture_errorA capture could not start. The callback is not called.
val with_capture_exn :
config:Observe.Config.t ->
?capacity:int ->
(Observe.Capture.t -> 'a Lwt.t) ->
'a Lwt.tRun callback with an isolated Lwt-scoped capture of ordinary Observe.Logs calls.
The inner scope wins when scopes are nested. The prior scope is restored after success, exception, or Lwt.Canceled. A callback registered in the scope but run after closure cannot fall through to production. Bindings do not propagate through Lwt_preemptive.detach, OS threads, or another I/O implementation.