Files
codex/codex-rs/otel/tests
karlr-openai 808630f1b3 Allow OTLP HTTP exports to approved destinations (#65070)
## 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
2026-12-01 19:58:09 +00:00
..