Documentation Index
Fetch the complete documentation index at: https://docs.tracectrl.ai/llms.txt
Use this file to discover all available pages before exploring further.
Installation
tracectrl is on PyPI. The LangChain instrumentor is not yet published — install it from the source tree.
PyPI publication of
tracectrl-instrumentation-langchain is pending. Until then, install from a local checkout or via pip install git+https://github.com/cloudsine/tracectrl.git#subdirectory=sdk/tracectrl-instrumentation-langchain.Usage
tag_agent(agent_executor) (or, for LangGraph, on the compiled graph) so the agent identity propagates onto every span the run produces.
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 the TraceCtrl processor and unwraps the OpenInference instrumentor.Whether the instrumentor is currently active.

