This project demonstrates how to implement tracing and monitoring for LangChain applications using Azure Application Insights and OpenTelemetry.
The sample code shows how to:
- Set up Azure Application Insights tracing for LangChain
- Instrument LangChain with OpenTelemetry
- Use Azure OpenAI with LangChain
- Configure LangSmith tracing
- Python 3.10 or higher
- Azure subscription with:
- Azure Application Insights resource
- Azure OpenAI resource
- LangSmith account (for additional tracing capabilities)
The following environment variables need to be configured: