Skip to main content
Braintrust integrates with Vercel in two ways: trace calls from the Vercel AI SDK in your application, or collect traces through the Vercel Marketplace integration.

Vercel Marketplace tracing

The Vercel Marketplace integration collects traces for AI calls in your Vercel applications with minimal setup. No package installation required.

Setup

Set up the marketplace integration by installing it from Vercel, linking Braintrust, choosing a plan, and adding a drain.
1

Install the integration

Visit the Vercel Marketplace listing and select Install.
2

Create or link your account

Create a Braintrust account or link your existing account.
3

Select a plan and project

Select a plan and create a project name:
  • Starter: Free with basic limits.
  • Starter (pay-as-you-go): No monthly fee, but charges for usage beyond the free tier. Requires a payment method.
  • Pro: Higher limits with a monthly fee.
See Plans and limits for a full comparison.
4

Add a drain

Select Add Drain to configure trace collection.

Configure log drain

Choose which trace data Vercel sends to Braintrust and which projects the drain covers.
1

Select trace data

In the Add Drain panel, select Traces and Next.
2

Choose projects

Choose which Vercel projects to trace (All Projects or specific projects).
3

Set sampling

Set the sampling rate for trace collection.

Enable OpenTelemetry

In your Next.js project, create an instrumentation.ts file and call registerOtel to emit traces to the marketplace drain.

Vercel Marketplace resources