mirror of
https://github.com/openai/codex.git
synced 2026-10-19 17:28:46 +00:00
## Why Tool telemetry needs to distinguish product SKUs without turning arbitrary configuration values into metric labels. ## What changed - Read `apps_mcp_product_sku` from the invoking turn when dispatching tools, replacing any stale SKU in the telemetry metadata. - Add `product_sku` to tool call count and duration metrics and tool result log and trace events. - Preserve `codex`, map other nonempty values to `other`, and omit the attribute for empty or missing values. ## Testing Add coverage for SKU separation on a shared metrics client, normalization, and successful and failing dispatches with stale telemetry metadata. Extend export routing tests to check SKU attributes in logs and matching traces. GitOrigin-RevId: 3fc58c9f7245fd5b65f7cba122e08d7ea838b2d6