大模型
dev.to ·
@saaro
2026 年 LLM 可观测性:为什么传统监控对 AI 系统是盲的
作者对比传统微服务与 LLM 系统的故障表现:前者抛异常、返回非 2xx 或指标飙升,错误可见;后者响应语法完美但事实错误、上下文微妙不相关、单请求成本悄然翻倍,而仪表盘仍显示绿色。文章认为这种对静默质量退化的盲区是 2026 年 LLM 可观测性的核心问题,并提出传统可观测性三支柱(Traces、Metrics、Logs)在 LLM 场景下需要扩展,例如记录从 prompt 开始的完整 LLM 决策路径。
AI推荐理由 文章指出传统 APM 对 LLM 系统的盲区:响应语法正确但事实错误、上下文微妙不相关、单请求成本悄然翻倍,而仪表盘仍显示绿色;并提出 traces、metrics、logs 三支柱在 LLM 场景下的扩展方向,对构建 AI 可观测性有参考价值,但正文片段未展开具体工具或实现。
61
正文
When a classic microservice fails, the error is visible: an exception is thrown, an HTTP status code is not 2xx, a metric spikes. When an LLM-based system fails, the error often remains invisible: the response is grammatically flawless, but factually wrong. The concrete context is subtly irrelevant. The cost per request has quietly doubled. And the dashboard shows green — even though the system is failing in terms of content.
This blindness to silent quality degradation is the central problem that LLM Observability addresses in 2026. While classic Application Performance Monitoring (APM) focuses on latency, error rates, and throughput, AI systems require their own observability discipline.
The Three Extended Pillars of LLM Observability
Traditional observability rests on three pillars: Traces, Metrics, and Logs. For LLM systems, each of these is fundamentally extended:
Traces: Instead of the mere request chain through services, the entire LLM decision path is recorded — from prompt to retrieval and context preparation to generation and post-processing. This is especially essential for multi-agent architectures: if an agent chain produces a wrong answer, it must be traceable back to which agent in the chain generated the faulty intermediate output.
Metrics: In addition to latency and error rate, token consumption, cost per request, and above all quality scores such as faithfulness (fidelity to context), relevance, and hallucination rate come into play.
Logs: Instead of system events, complete prompt-response pairs, the retrieved context, the model version, and user feedback end up in the analysis.
As the imperialis-Tech analysis summarizes: "A system can be 100% available, respond in under a second — and deliver completely wrong results."
Quality Metrics: The LLM-as-Judge Pattern
The crucial difference from classic observability: quality metrics for LLMs cannot be calculated with simple thresholds. They require a second LLM or a cross-encoder model that evaluates the output of the first model — the so-called LLM-as-Judge pattern.
Practice shows: Instead of evaluating 100% of all requests, a sample of 10–20% of production traffic is sufficient to reliably detect trends. An alarm is triggered on deterioration of the sample, not on individual requests.
Cost Monitoring: The Underestimated Discipline
LLM costs scale with token consumption, and that scales with prompt length, context windows, and request volume. Organizations regularly find that an LLM function in production costs 5 to 10 times more than the initial estimate — simply because no one tracked token usage per session and model. Effective cost monitoring captures token consumption per user, session, and model and allows SQL-based queries of the cost breakdown.
The Tool Landscape in 2026
The tool offering has become highly differentiated in 2026. The most important platforms at a glance:
Tool
Strenght
Open Source
Langfuse
Detailed tracing, evaluation, prompt management
Yes (MIT, self-hostable)
Arize Phoenix
ML/LLM observability, production evaluation
Yes (Elastic License 2.0)
OpenObserve
Unified LLM + infrastructure observability
Yes (AGPL-3.0, self-hostable)
Confident AI
Evaluation-centric monitoring platform
No (Cloud)
Datadog LLM Observability
APM integration for existing customers
No
LangSmith
Integrated with LangChain ecosystem
No
For teams with data residency requirements, Langfuse is the recommended starting point: It is open source, self-hostable via Docker Compose or Kubernetes, and offers tracing, prompt management, and evaluation without framework lock-in. OpenObserve stands out as the only platform that combines LLM tracing and classic infrastructure monitoring (logs, metrics, traces) in a single, self-hosted instance.
OpenTelemetry as a Standard
An important trend in 2026 is standardization through OpenTelemetry GenAI Semantic Conventions. The GenAI Special Interest Group defines standardizes span attributes for LLM calls, tool invocations, embeddings, and agent steps under the namespace gen_ai.*. This means: Once instrumented, traces can be exported to any OTLP-compatible backend — vendor lock-in is avoided.
However: The conventions still have "Development" status, attributes may change. And OTel, by architecture, only covers telemetry collection, not evaluation or intervention (guardrails). This is where a new category emerges in 2026 : the Agent Control Plane, a central governance layer that applies policies (e.g., PII detection) independently of the execution framework to all agents.
Conclusion
LLM Observability is no longer a nice-to-have in 2026, but a prerequisite for production operation of AI systems. The teams that win in production are those that treat every model call as a measurable event: they trace it, evaluate it, price it, and alert on it. The entry barrier is low: open-source tools like Langfuse or OpenObserve can be deployed in minutes and adapted to any architecture. Those who start today will save themselves tomorrow's surprises.
Sources
LLM Observability in 2026: tracing, logging, and monitoring AI systems the right way — Imperialis Tech (March 2026)
LLM Monitoring vs Observability: Top Tools for 2026 — Confident AI (July 2026)
AI Observability Trends Shaping 2026 — Galileo (2026)
Top Open Source LLM Observability Tools in 2026 — OpenObserve (July 2026)
Self-host Langfuse — Langfuse Docs (2026)