Skip to main content
Automatically capture agent steps, tool calls, and LLM invocations within LangChain chains and LangGraph graphs.

Install

Set up

Usage

Usage with LangGraph

Usage with LangChain

Verify

Run your code and confirm the trace arrives:
  1. In the traceroot UI: Navigate to Tracing > Traces in traceroot Cloud. You should see a trace with root span RunnableSequence or CompiledStateGraph.
  2. Via the CLI: Run traceroot traces list to inspect your recent traces from the terminal.

What gets captured

Limitations

  • For TypeScript, instrumentModules must be configured with @langchain/core/callbacks/manager to enable automatic callback tracing.

Run the example

Clone the repo and run a complete agent end-to-end.

Python

Run the Python example

TypeScript

Run the TypeScript example

Next steps

Python SDK Reference

Explore the full Python SDK reference and instrumentation options.

TypeScript SDK Reference

Explore the full TypeScript SDK reference and configuration options.