Expand description
Prometheus metric definitions for agent lifecycle — counters, histograms.
Feature-gated behind metrics. When disabled, all functions compile to no-ops.
Functions§
- record_
agent_ completed - Record that an agent completed (no-op without
metricsfeature). - record_
agent_ error - Record an agent error (no-op without
metricsfeature). - record_
agent_ started - Record that an agent has started (no-op without
metricsfeature). - record_
agent_ tool_ dispatch - Record agent-as-tool dispatch (no-op without
metricsfeature). - record_
agent_ tool_ dispatched - Record a tool dispatch (no-op without
metricsfeature). - record_
agent_ tool_ duration - Record tool execution duration (no-op without
metricsfeature). - record_
agent_ transfer - Record an agent transfer (no-op without
metricsfeature). - record_
event_ loop_ lag - Record event loop lag (no-op without
metricsfeature). - record_
extraction_ duration - Record extraction duration (no-op without
metricsfeature). - record_
llm_ call - Record LLM call (no-op without
metricsfeature). - record_
persistence_ duration - Record session persistence duration (no-op without
metricsfeature). - record_
phase_ transition - Record a phase transition (no-op without
metricsfeature). - record_
token_ usage - Record total token usage (no-op without
metricsfeature).