mirror of
https://github.com/openai/codex.git
synced 2026-12-03 00:41:03 +00:00
## Why The aggregate `mcp.binding.startup_wait` span measures how long binding capture waits for MCP startup. It gives no breakdown of which servers account for that time or how their waits end. ## What changed Add an INFO-level `mcp.binding.server_startup_wait` child span for each server registration. Each span measures that server's wait independently and records its name and outcome. Outcomes distinguish readiness, startup that already completed, a cached catalog, expiration of the optional startup grace period, startup failure or cancellation, and interruption when binding capture is dropped. ## Testing Add trace export tests that use the production filter and check parentage, overlapping waits, and outcome reporting. The tests also check that environment identifiers and startup error details stay out of span attributes. GitOrigin-RevId: e5ebc7d92a511271f2004ab34fa3a0be6a4e926d