Our LangChainInstrumentor automatically captures traces for both LangGraph and LangChain. If you’ve already enabled that instrumentor, you do not need to complete the steps below.
Initialize the LangChain Instrumentor to enable automatic tracing. Our LangChainInstrumentor automatically captures traces for both LangGraph and LangChain.
Copy
Ask AI
from traceai_langchain import LangChainInstrumentorLangChainInstrumentor().instrument(tracer_provider=trace_provider)