Export AI Gateway traces with Vercel Drains
By Steven Van ·
AI Gateway now produces an OpenTelemetry trace for every request.
AI Gateway now generates an OpenTelemetry trace for every request, and Pro and Enterprise teams on Vercel can send those traces through Vercel Drains to any OTLP/HTTP-compatible endpoint. Native integrations are available for Braintrust, Dash0, Kubiks, Sentry, and Statsig.
Each trace covers the full request lifecycle: model and provider routing, fallback and retry attempts, token usage and cost, time to first token, request duration, response status, and attribution down to project, deployment, API key, environment, and custom tags. Trace Drains do not include prompt or completion content, and sampling controls set how much traffic goes to each drain.
Traces cost $0.05 per 1,000 delivered to each drain, plus the standard Drains rate of $0.50 per GB transferred. A request is billed once per successful drain delivery even if AI Gateway makes several provider attempts, and failed deliveries aren't charged. Trace Drains can be set up from a team's Drains settings, as described in the announcement.
