LangChain integration metrics
The official Datadog integration for monitoring LangChain. It collects 6 metrics.
Official summary
Optimize LangChain usage: prompt sampling and performance and cost metrics.
Metric types
- gauge (value at a point in time): 4
- count (occurrences in the interval): 2
Metrics
Descriptions are the official definitions, unedited.
| Metric | Type | Unit |
|---|---|---|
langchain.Request duration distribution. | gauge | nanosecond |
langchain.Number of errors. | count | error |
langchain.Number of tokens used in the completion of a response. | gauge | token/ |
langchain.Number of tokens used in the prompt of a request. | gauge | token/ |
langchain.Total number of tokens used in a request and response. | gauge | token/ |
langchain.Estimated cost in USD based on token usage. | count | dollar |
Official documentation
Metric names and descriptions are the official Datadog integration definitions (Copyright Datadog, Inc., BSD-3-Clause), reproduced unedited. The full license terms are on the About page.