dict).
Component Metrics
Register a metrics hook with the@pipeline.metrics.on("<component>") decorator. Each component delivers different payload keys.
Use cases
Usestt, llm, tts, and eou metrics with Cascade pipelines. Use realtime metrics when the pipeline runs in Realtime or Hybrid mode with a realtime model as the LLM. Use knowledge_base metrics with Managed RAG: it fires after each search, whether from Pipeline(knowledge_base=...) or from KnowledgeBase.retrieve() in a function tool.
- STT
- LLM
- TTS
- EOU
- Realtime
- Knowledge Base
What’s Next
Observability and Analytics
View the captured metrics, traces, and logs on the Dashboard.
Run Your Agent
Monitor agent and user state changes.
References
- Python
- Node JS
Examples
Observability Hooks
Emit metrics and traces from pipeline hooks.