Technologies/LangChain/langchain_tokens_completion
LangChainLangChainMetric

langchain_tokens_completion

Number of tokens used in the completion of a response.
Dimensions:None
Available on:DatadogDatadog (1)
Interface Metrics (1)
DatadogDatadog
Number of tokens used in the completion of a response.
Dimensions:None
Related Insights (3)
Token Usage Forecast Drift from Model Changeswarning

LangSmith's token usage forecasting assumes stable model behavior. Untagged model version changes (e.g., GPT-4 → GPT-4-turbo, Claude updates) can shift token distributions, invalidating forecasts and triggering false cost alerts.

Agent Intermediate Steps Explosionwarning

langchain_agent_intermediate_steps counts reasoning/tool-use iterations. Unbounded growth indicates agents spinning on complex tasks, inefficient tool selection, or poor stopping criteria, driving up latency and cost.

Usage metadata extraction from serialized tracer outputs now supportedinfo