Export AI Gateway Traces via Vercel Drains
Key point
Vercel AI Gateway exports OpenTelemetry traces for all requests via Drains.
Details
AI Gateway generates OpenTelemetry traces for every request. Pro and Enterprise teams can send traces to OTLP/HTTP-compatible endpoints via Vercel Drains, with native integrations also supported for Braintrust, Dash0, Kubiks, Sentry, and Statsig.
Each trace includes the full request processing pipeline along with the following information:
- Model and provider routing
- Fallback and retry attempts
- Token usage and cost
- Time to first token, total request time, and response status
- Project, deployment, API key, environment, and custom tag information
Trace Drains do not include prompt or completion content. Additionally, sampling settings allow you to control the percentage of traffic exported to each Drain.
Costs are $0.05 per 1,000 traces delivered per Drain, with an additional standard Drains data transfer fee of $0.50 per GB. Even if AI Gateway attempts multiple providers, only one request is billed per successfully delivered Drain, and no trace fees are charged for failed deliveries.
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.