All integrations

Braintrust

Instrumentation

Export AI SDK spans to Braintrust for tracing, evals, and monitoring.

Read the full instrumentation docs

Install

Add Braintrust instrumentation from eve's registry:

bash
eve add instrumentation/braintrust

Quick start

Create agent/instrumentation.ts. eve auto-discovers it and runs it at server startup, and its presence enables telemetry:

ts
// agent/instrumentation.tsimport { BraintrustExporter } from "@braintrust/otel";import { defineInstrumentation } from "eve/instrumentation";import { registerOTel } from "@vercel/otel";
export default defineInstrumentation({  setup: ({ agentName }) =>    registerOTel({      serviceName: agentName,      traceExporter: new BraintrustExporter({        parent: `project_name:${agentName}`,        filterAISpans: true,      }),    }),});

Configure

Create an API key in the Braintrust dashboard and expose it as BRAINTRUST_API_KEY. Spans land in the Braintrust project named after your agent. See the instrumentation guide for the trace hierarchy and the recordInputs/recordOutputs controls.