Vercel AI Exporter
SDK reference for the Respan Vercel AI exporter.
Installation
Classes
RespanExporter
OpenTelemetry SpanExporter implementation that converts Vercel AI SDK spans to Respan format.
Methods
Internal processing
The exporter automatically:
- Deduplicates AI SDK spans
- Parses model information, prompt messages, and tool calls
- Extracts token usage and cost data
- Maps Vercel AI metadata to Respan span attributes
- Handles streaming response data
Usage
Then enable telemetry in your AI SDK calls: