Setup
Install the Braintrust LangChain integration alongside your LangChain packages:Trace with LangChain
Braintrust provides callback handlers that automatically capture LangChain operations including chains, agents, retrievers, and individual LLM calls. To trace your LangChain application, configure theBraintrustCallbackHandler:
trace-langchain.ts