Integrations / Vercel AI SDK

Trace the Vercel AI SDK

To trace the Vercel AI SDK with Tracify, use the TypeScript SDK or OpenTelemetry telemetry. Streaming calls, tool use and each step of a multi-step generation are recorded as spans.

Your code

Vercel AI SDK

Tracify

One run.

  • 01Streaming generations
  • 02Tool calls per step
  • 03Tokens and cost
  • 04Route handler timing in Next.js

Setup

A few lines.

typescript
import { traceAgent } from "tracify-sdk";

// Wrap your route handler's work in a run; model calls inside it join the trace.
// See the TypeScript docs for the full traceAgent signature.

Full details in the documentation. All integrations are listed on the integrations page.

Does it work with Next.js route handlers?
Yes. The TypeScript SDK traces server-side code including route handlers and Server Actions.

Send your first trace.

Free to start.