Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

LLM Agent Observability: Traces and Sessions, 10 Problems Reproduced

说明与用途

通过三条HTTP头实现LLM代理的可观测性,帮助团队诊断并修复延迟、成本和失败问题,提升性能和成本效益。

问题

LLM agents lack fine-grained observability, making it hard to diagnose latency, cost, and failure issues.

结果

Latency reduced by 51 %, cache hit rate increased to 73 %, and cost per run dropped by 66 % for the support agent example.

工作流

  • Add X-Trace-Id, X-Span-Id, X-Session-Id headers to each request
  • Use asyncio.gather to send independent sub-agent checks concurrently
  • Remove timestamps from the first line of prompts
  • Avoid resending tool results in conversation history

证据

Three request headers (X-Trace-Id, X-Span-Id, X-Session-Id) turn the Synthorai gateway's request log into traces and sessions with no tracing SDK.

来源

Sending three independent sub-agent checks together cut their median time from 3.7 s to 1.8 s at the same cost.

来源

Moving a timestamp off a prompt's first line on GPT-6 Luna raised the cache hit rate from 0% to 73%, from an empty cache.

来源

  • 记录日期: 2026-10-19T18:41:18.296Z