Skip to main content

Install

Instrument

After instrumentation every chain, agent, LLM call, and tool invocation is captured as a span in the current trace — no per-callsite code changes required.

Minimal example

What gets captured

  • chain spans for every Runnableinvoke, batch, stream
  • llm spans for every model call (OpenAI, Anthropic, Bedrock, etc.) with inputs, outputs, and token counts
  • tool spans for every @tool / StructuredTool invocation with arguments and return value
  • retriever spans for vector-store queries with the retrieved documents attached as output
Nested runnables produce a nested span tree, so the dashboard waterfall mirrors the shape of your chain.