All integrations

Sentry

Instrumentation

Send agent traces to Sentry's OTLP endpoint for tracing and debugging.

Read the full instrumentation docs

Install

Add Sentry instrumentation from eve's registry. Sentry ingests OTLP directly, so no Sentry SDK is required:

bash
eve add instrumentation/sentry

Quick start

Create agent/instrumentation.ts and point the OTLP exporter at your project's Sentry traces endpoint:

ts
// agent/instrumentation.tsimport { defineInstrumentation } from "eve/instrumentation";import { OTLPHttpProtoTraceExporter, registerOTel } from "@vercel/otel";
export default defineInstrumentation({  setup: ({ agentName }) =>    registerOTel({      serviceName: agentName,      traceExporter: new OTLPHttpProtoTraceExporter({        url: process.env.SENTRY_OTLP_TRACES_ENDPOINT!,        headers: {          "x-sentry-auth": `sentry sentry_key=${process.env.SENTRY_PUBLIC_KEY}`,        },      }),    }),});

Configure

Copy the OTLP traces endpoint and public key from your Sentry project under Settings → Client Keys (DSN) and expose them as environment variables. Sentry's OTLP intake accepts traces only, and span events are dropped at ingestion. See the instrumentation guide for the trace hierarchy and the recordInputs/recordOutputs controls.