Export AI Gateway traces with Vercel Drains
Vercel AI Gateway can export per-request OpenTelemetry traces, exposing routing, retries, latency, tokens, cost, and attribution without sending prompt or completion content.
AI Gateway now emits **one OpenTelemetry trace per request**. Pro and Enterprise teams can export traces through Vercel Drains to OTLP/HTTP endpoints, with routing, fallbacks, retries, usage, cost, latency, status, and deployment attribution included.
Send sampled traces to the observability system you already use, then inspect provider failover, slow first tokens, and unexplained agent costs alongside application telemetry. Prompt and completion content are excluded from the drain.
AI Gateway now emits **one OpenTelemetry trace per request**. Pro and Enterprise teams can export traces through Vercel Drains to OTLP/HTTP endpoints, with routing, fallbacks, retries, usage, cost, latency, status, and deployment attribution included. Send sampled traces to the observability system you already use, then inspect provider failover, slow first tokens, and unexplained agent costs alongside application telemetry. Prompt and completion content are excluded from the drain. Export costs **$0.05 per 1,000 delivered traces per drain**, plus **$0.50 per GB** transferred. Multiple provider attempts still count as one request, but sending the same request to multiple drains creates separate delivery charges.
This moves Gateway observability from a Vercel inspection surface into existing telemetry systems, preserving per-request routing, retry, cost, latency, status, and deployment context without exporting prompts or completions. It enables cross-stack diagnosis and routing analysis, while explicit delivery and transfer charges make sampling and drain count part of the observability design.