mirror of
https://github.com/openai/codex.git
synced 2026-09-08 15:50:34 +00:00
## Why A stalled telemetry exporter can block shutdown indefinitely when the interactive TUI exits. ## What changed - Add `OtelProvider::shutdown_with_timeout` to run exporter shutdown on a detached thread and report completion, worker failure, or timeout. - Give interactive TUI telemetry shutdown a 500 ms time budget and warn if cleanup does not finish successfully. ## Testing - Cover successful shutdown on current-thread and multi-thread Tokio runtimes, worker creation failure, and timeout behavior. - Verify that OTLP HTTP shutdown returns on time when a collector stalls. GitOrigin-RevId: 5b5f31a841fbc5788715cb3065d522c6dafa994f