Overview
Laminar is an open-source, OpenTelemetry-native observability platform for AI agents. eve is Vercel’s framework for durable AI agents, built on the Workflow SDK and the Vercel AI SDK. eve emits OpenTelemetry spans for every agent turn, model call, and tool call through itsinstrumentation.ts file, so Laminar captures the full run without any per-call wiring.
What Laminar captures from an eve agent:
- User messages and system instructions sent to the model.
- Model output and reasoning for each turn.
- Tool calls, their arguments, and tool results.
- Token counts, latency, and cost per call.
- The model name and provider behind each call.
gpt-5-mini turn, the get_weather tool call, and the final answer, in order.
Getting Started
eve discoversagent/instrumentation.ts automatically and runs its setup function once when the agent server starts. You register Laminar’s span processor there.
1
Install
@vercel/otel is eve’s recommended way to register an OpenTelemetry tracer provider. Laminar plugs into it as a span processor.2
Set environment variables
Laminar initialization. If not specified,
Laminar will look for the key in the LMNR_PROJECT_API_KEY environment variable.3
Register Laminar in agent/instrumentation.ts
Create
agent/instrumentation.ts (or edit the one eve generated). Add LaminarSpanProcessor to the spanProcessors array you pass to registerOTel. The processor reads LMNR_PROJECT_API_KEY from the environment and sends spans to Laminar.agent/instrumentation.ts
setup runs at server startup, before the first agent turn. eve passes the agent name in, which becomes the OpenTelemetry service name on every span.Do not call
Laminar.initialize() here. registerOTel already installs a tracer provider, and LaminarSpanProcessor attaches to it. Calling Laminar.initialize() as well would register a second provider.4
Run your agent
Build and start the agent as usual. Every turn is traced.Send the agent a message and the trace appears in Laminar.
Keeping payloads off your spans
eve enables input and output recording by default, so prompts and responses are captured on the spans. To keep that content out of Laminar (for sensitive data or to reduce payload size), turn it off in the instrumentation file. Token counts, latency, and cost are still recorded.agent/instrumentation.ts
See what happened in a trace
Open the trace in Laminar and you get the transcript view: the user message, each model turn, tool calls with their arguments, and tool results laid out as a conversation. The timeline on the right shows how the turn’s spans overlap in time, so you see where the agent spent its time.
An eve agent turn in Laminar: the user question, the gpt-5-mini turns, the get_weather tool call, and the final answer rendered as a transcript, with the span timeline on the right.
Track outcomes with Signals
Traces answer what happened on this run. Signals answer the cross-trace question: how often does the agent call a tool that returns an empty result, when does a turn run more steps than expected, how often does the agent answer without calling the tool it should have. A Signal pairs a plain-language prompt with a JSON output schema. Laminar runs it live on new traces (Triggers) or backfills it across history (Jobs) and records a structured event every time it matches. From there you query, cluster, and alert on events across every run.Every new project ships with a Failure Detector Signal that categorizes issues on any trace over 1000 tokens. Open it from the Signals sidebar to see events as soon as your eve traces arrive.
Query across traces
- SQL editor for ad-hoc queries across traces, spans, signals, and evals.
- SQL API for programmatic access from scripts and pipelines.
- CLI (
lmnr-cli sql query) for terminal-driven queries and piping JSON into shell tools or coding agents. - MCP server to query Laminar from Claude Code, Cursor, or Codex.
Troubleshooting
I don't see any traces in Laminar
I don't see any traces in Laminar
- Confirm
LMNR_PROJECT_API_KEYis set in the environment the agent server runs in, not just your shell. - The processor must be registered in
agent/instrumentation.ts. eve only runs thesetupfunction from a default-exporteddefineInstrumentationcall, so make sure that is the file’s default export. - Restart the agent after editing
instrumentation.ts.setupruns once at startup, so changes only take effect on a fresheve start.
I see the model and tool calls but no message content
I see the model and tool calls but no message content
Check that you did not set
recordInputs or recordOutputs to false in defineInstrumentation. Both default to on; setting either to false strips that content from the spans.I see two tracer providers or duplicated spans
I see two tracer providers or duplicated spans
Remove any
Laminar.initialize() call. With eve, registerOTel owns the tracer provider and LaminarSpanProcessor attaches to it. Laminar.initialize() would register a second provider.What’s next
Viewing traces
Read the transcript view, filter, and search across traces.
Signals
Detect behaviors and failures across every run, then query, cluster, and alert on them.
SQL editor and MCP server
Query traces programmatically from the UI, API, or your IDE.
Vercel AI SDK
eve is built on the AI SDK. Trace
generateText and streamText directly here.