Installation
Usage
What Gets Captured
| Span Kind | Examples | Attributes Set |
|---|---|---|
CHAIN | Chain/pipeline runs | input.value, output.value |
LLM | ChatOpenAI, ChatAnthropic | llm.model_name, llm.system |
TOOL | Tool invocations | tool.name, tool.description, tracectrl.tool.category |
AGENT | AgentExecutor runs | tracectrl.agent.id, tracectrl.agent.name |
RETRIEVER | Vector store retrievals | retrieval.documents |
LangGraph Support
LangGraph agents are automatically captured — each node execution appears as a span with parent-child relationships matching the graph structure.API
LangChainInstrumentor()
instrument(tracer_provider=None, skip_dep_check=False) — Registers the TraceCtrl span processor and wraps the OpenInference LangChain instrumentor.uninstrument() — Shuts down processors and unwraps the instrumentor.Whether the instrumentor is currently active.

