Q.48
Design an observability stack for a production agentic system with thousands of concurrent sessions.
Instrument distributed tracing per session/agent step (e.g., OpenTelemetry spans linking reasoning → tool calls → outputs), collect metrics (latency, cost per session, tool error rates, success rate), set up real-time alerting on anomalies (spike in loop detections, failure rates), and sample sessions for periodic human/LLM-judge quality review, all feeding into a dashboard for aggregate and per-session drill-down.