Observability for LangChain with Dynatrace
OpenLLMetry lets you trace complete chains built with LangChain. With 5 minutes of work you can get complete view of your system directly into Dynatrace. 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
Go to your Dynatrace environment and create a new access token under Manage Access Tokens.
The access token needs the following permission scopes that allow the ingest of OpenTelemetry spans, metrics and logs (openTelemetryTrace.ingest, metrics.ingest, logs.ingest).
Set the following environment variables.
Discover use cases
Trace chains built with LangChain
Trace any chain built with LangChain, whether you're using LCEL or the original SequentialChain API