Integrations / LangGraph

Trace LangGraph agents

To trace a LangGraph agent with Uncoil, add the Uncoil integration to your graph. Each node run, model call and tool call becomes a span inside a single trace for the run.

Your code

LangGraph

Uncoil

One run.

  • 01One trace per graph run
  • 02Spans for nodes, model calls and tools
  • 03Loops and retries visible in order
  • 04Cost and latency per node

Setup

A few lines.

typescript
import { UncoilLangGraphHandler } from "uncoil-sdk";

await graph.invoke(input, { callbacks: [new UncoilLangGraphHandler()] });

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

Do I have to use LangChain to trace LangGraph?
Uncoil traces LangGraph through its integration; for other frameworks you can use OpenTelemetry.

Send your first trace.

Free to start.