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 has completed, with its duration.
- record_
agent_ error - Record an agent error.
- record_
agent_ started - Record that an agent has started.
- record_
agent_ tool_ dispatch - Record an agent-as-tool dispatch with duration.
- record_
agent_ tool_ dispatched - Record that a tool was dispatched by an agent.
- record_
agent_ tool_ duration - Record tool execution duration for an agent.
- record_
agent_ transfer - Record an agent transfer from one agent to another.
- record_
event_ loop_ lag - Record event loop lag (skipped events).
- record_
extraction_ duration - Record extraction duration.
- record_
llm_ call - Record LLM call with duration and token counts.
- record_
persistence_ duration - Record session persistence duration.
- record_
phase_ transition - Record a phase transition.
- record_
token_ usage - Record total token usage.