Observability for LangChain with Grafana Tempo

OpenLLMetry lets you trace complete chains built with LangChain. With 5 minutes of work you can get complete view of your system directly into Grafana Tempo. See how below.

Step 1

Install the Traceloop SDK and initialize it. It will automatically create traces from all the chains you've created through LangChain, with prompts and completions as separate spans.

Step 2

Make sure you have a Grafana Agent installed and running in your system. Go to the Grafana Cloud account page under https://grafana.com/orgs/<your org name>, and click on Send Traces under Tempo. In Grafana Data Source settings, note the URL value. Click Generate now to generate an API key and copy it. Note also the Stack ID value (you can find it in the URL https://grafana.com/orgs/<Your Org Name>/stacks/<Stack ID>). Add this to the configuration of your Grafana Agent.

Discover use cases

Trace chains built with LangChain

Trace any chain built with LangChain, whether you're using LCEL or the original SequentialChain API