{
  "id": 6728094,
  "title": "Session Traces and Cost Controls Help Diagnose AI Agent Failures",
  "url": "https://urgent.news/2026/09/11/session-traces-and-cost-controls-help-diagnose-ai-agent-failures",
  "topic": "ai",
  "section": "AI",
  "published": "2026-09-11T08:14:00.000Z",
  "source": {
    "name": "InfoQ",
    "slug": "infoq",
    "url": "https://www.infoq.com/news/2026/09/observability-ai-agents/"
  },
  "original_language": "en",
  "account": null,
  "summary": "InfoQ discusses how session traces and cost controls can help diagnose AI agent failures. The article highlights that while standard application monitoring can confirm whether a service responds, it fails to explain why autonomous workflows loop, call invalid endpoints, or skip work. To address this, StackGen, a CNCF member, uses Langfuse to capture nested session traces, recording each LLM call, tool execution, and sub-agent delegation as individual spans with execution latency and token costs attached. This allows teams to understand what the agents are doing when they go wrong. Cost controls are also recommended as a primary operational safeguard against runaway execution, enforcing hard iteration caps and per-tool call limits before execution begins. Additionally, pre-execution checks block identical consecutive tool requests, while statistical monitoring compares session costs against each agent's rolling average to flag slower anomalies.",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}