You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
capture.start() and capture.end() support lifecycle capture boundaries for flows that cannot
wrap their work in a callback. CaptureScope can be ended directly, or capture.end() can end the
currently active lifecycle capture.
Fixed
Capture root spans now record exceptions and set ERROR status when captured work raises or a
lifecycle capture ends with an error.
capture() now keeps context isolated when a synchronous callable returns a coroutine, so
concurrent wrapper-mode captures such as asyncio.gather(capture("a", lambda: task_a()), ...)
do not leak the last capture context into every task.