mirror of
https://github.com/openai/codex.git
synced 2026-12-02 00:31:03 +00:00
## Why Destination restrictions blocked OTLP exports even when the HTTP collector was allowed because the exporter applied the same guard as SDK transports that cannot check request destinations. ## What changed Use the managed HTTP client to enforce the current destination policy on each OTLP request and redirect for logs, traces, and metrics. Bind the client to the account active when the exporter is created so stale exporters cannot send after an account switch. Keep the SDK guard for gRPC and other transports that cannot enforce the policy per request. ## Testing Add a local TLS integration test that verifies delivery of all three signals to an approved collector and checks that unready policy, stale exporters, denied destinations and redirects, and raw gRPC are blocked. GitOrigin-RevId: 400c9cb9870cc1a3f47f4447348ce50f4b934b00