Wraps a securer session execution with a span. Records the submitted code, captured stdout/stderr, and sets span status to error on execution failure. Requires the securer package.
Examples
if (FALSE) { # \dontrun{
# Requires securer package
session <- securer::SecureSession$new()
with_trace("exec-demo", {
result <- trace_execution(session, "1 + 1")
})
session$close()
} # }