Export AI Gateway traces with Vercel Drains
- Source
- vercel.com
- Author
- Jerilyn Zheng
- Date

Context
Vercel's AI Gateway traces let teams examine how a model request was handled, including provider routing, retries, fallbacks, timing and cost. Pro and Enterprise teams can export those records through Drains to any endpoint compatible with the OTLP/HTTP telemetry protocol, which gives them records for investigating a slow or unexpectedly expensive request. Trace export announcement.
The exported traces exclude and completion content. They therefore support investigation of request handling without including the conversation text in that export. Teams can also sample traffic to choose how many traces reach each destination, and Vercel charges for delivered traces on top of standard Drains data rates. Export contents and controls.
- Prompt — Information or instructions supplied to a model; in a chat, the request you type is often called your prompt.
- model routing — Sending each request to a model chosen by the difficulty of the task, rather than using one model for everything.
- Token — A piece of text, such as a word, part of a word or a punctuation mark, that a language model represents as numbers and handles as a unit.
- time to first token — The delay between sending a model request and receiving the first piece of its response.
Checking sign-in…
Loading comments…






