Technologies/LangChain/langchain_tool_invocation
LangChainLangChainMetric

langchain_tool_invocation

Number of tool invocations
Dimensions:None
Available on:OpenTelemetryOpenTelemetry (1)
Interface Metrics (1)
OpenTelemetryOpenTelemetry
Number of tool invocations
Dimensions:None
Related Insights (4)
Agent Infinite Loop Detectioncritical

Agents can enter infinite tool-calling loops when tool selection logic fails or tools return results that trigger repeated invocations, consuming tokens and delaying responses.

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.

Tool Error Rate as Dependency Health Proxywarning

langchain_tool_error spikes often reflect downstream API failures, rate limits, or network issues—not application bugs. Treating tool errors in isolation misses the root cause: external service degradation.

Parallel tool calls merge bug could corrupt tool execution resultscritical