2.2.0b2 (2026-09-23)
Features Added
- Added
flush_spans_async, a non-blocking variant offlush_spansthat
offloads the blockingTracerProvider.force_flushto a worker thread so it
does not stall the asyncio event loop, andschedule_flush_spans, a
fire-and-forget helper that flushes in the background without delaying the
caller. Background flushes are coalesced: at most one runs at a time and
concurrent requests collapse into a single follow-up flush, so the work does
not grow with the request rate. Async flushes drain queued or running exports
before propagating request cancellation. Both helpers are marked
@experimental.
Other Changes
azure-ai-agentserver-responses2.2.0b2 requires this release for the
non-blocking span flush helpers.