LangChain Tracing
How to use the python LangChainInstrumentor to trace LangChain
Phoenix has first-class support for LangChain applications.
Launch Phoenix
Sign up for Phoenix:
Sign up for an Arize Phoenix account at https://app.phoenix.arize.com/login
Install packages:
Set your Phoenix endpoint and API Key:
Your Phoenix API key can be found on the Keys section of your dashboard.
Install
Setup
Use the register function to connect your application to Phoenix:
Run LangChain
By instrumenting LangChain, spans will be created whenever a chain is run and will be sent to the Phoenix server for collection.
Observe
Now that you have tracing setup, all invocations of chains will be streamed to your running Phoenix for observability and evaluation.
Resources
Was this helpful?