AI observability

AI observability is the practice of collecting and analyzing telemetry, data such as logs, metrics, and traces that a system automatically records as it runs, from artificial intelligence systems deployed in production, in order to understand how they behave and how well they perform in terms of accuracy, cost, and safety. It applies the idea of observability, which comes from control theory and software engineering, to systems based on machine learning models, and in particular to large language models (LLMs) and autonomous agents. In control theory, observability is a measure of how well the internal state of a system can be inferred from its external outputs.[1]
AI observability is often distinguished from conventional monitoring. Where monitoring relies on predefined metrics, thresholds, and alerts to signal that a problem has occurred, observability aims to provide enough context to understand why it occurred. The distinction matters for AI systems in particular, because a system can appear healthy by standard infrastructure measures, such as latency or error rate, while still producing answers that are wrong, irrelevant, or unsafe.[2]
One of the signals that AI observability tracks is the change in a model's behavior over time, a phenomenon studied in machine learning under the name of concept drift.[3] AI observability is closely related to MLOps (machine learning operations), and it is sometimes treated as one of its parts. When it is applied specifically to language models or to agent-based systems, it is also called LLM observability or agent observability.[4]
Background
[edit]The term observability originates in control theory, where it was introduced by Rudolf E. Kálmán in 1960 to describe how well the internal states of a dynamical system can be inferred from measurements of its outputs. In software engineering, the term became popular from the mid-2010s to describe the ability to understand the internal state of complex distributed systems from the telemetry they produce, commonly organized into the "three pillars" of logs, metrics, and traces.[5]
Applying observability to AI systems raises challenges that do not arise in conventional software. In traditional systems, identical inputs and states are expected to produce identical outputs, and faults can typically be traced to specific code sections. Machine learning models sample from probability distributions instead, so a system may show normal operational characteristics while still generating undesirable outputs such as hallucinations.[6] That gap motivated adding behavioral and semantic telemetry, covering prompt and response content, output quality, and model drift, alongside the conventional signals of software monitoring.[2]
Observability versus monitoring
[edit]Although the two terms are sometimes used as synonyms, the literature usually keeps them separate.[7] Monitoring is defined as the collection of predefined measurements against known thresholds, producing alerts when those thresholds are crossed; it addresses questions that operators already know to ask. Observability is the broader capability, allowing operators to investigate unanticipated behavior by correlating diverse signals across the system rather than responding only to known alert conditions. A monitoring-only approach therefore depends on experienced engineers knowing in advance what to look for, while observability supports open-ended investigation of any anomaly.[2]
In the context of AI systems, this distinction is often framed in terms of an additional, behavioral dimension layered on the conventional pillars of telemetry. Infrastructure-level signals may indicate that a model is responding quickly and without errors, while separate signals are required to assess whether its outputs are accurate, relevant, compliant with policy, and free of unsafe content.[2]
Signals and dimensions
[edit]AI observability builds on the standard telemetry signals of software engineering, namely logs, metrics, and traces, and adds dimensions specific to machine learning models. The dimensions that are most often described are:[5][4]
- Inputs and outputs: the prompts sent to a model and the responses it returns. These are sometimes stored in full so that problems can be studied later.[4]
- Cost and resource usage: how many tokens a request uses and how much it costs, together with latency. These are common measures of inference efficiency and help identify waste and unexpected expense.[4]
- Performance: latency, throughput, and error rate, as in traditional application performance management.[7]
- Output quality: how relevant, accurate, and well aligned with the prompt the answer is. These properties usually cannot be checked by normal code, and they include the rate of hallucinations.[6]
- Behavior over time: changes in the model, known as drift, and worse results after a model or prompt change.[3][8]
- Safety and policy: finding policy violations, unsafe content, and unusual usage.[4]
For agent-based systems, more signals are needed because the work happens in many steps. These signals record the intermediate reasoning steps, the calls to external tools and APIs, and the retrieval-augmented generation chains.[4]
Techniques and methods
[edit]Techniques associated with AI observability include:[4]
- End to end tracing of requests as they move through pipelines, chains, or agent steps, so that each stage of the execution becomes visible.[9]
- Structured logging of events, including model identifiers, timestamps, and request and response pairs.[9]
- Anomaly detection over the telemetry, in order to surface unexpected behavior.[8]
- Synthetic monitoring, in which predefined test prompts are sent repeatedly, for example after a model or prompt update, to detect regressions.[4]
- Automated evaluation, including the use of one language model to assess the output of another, an approach often called "LLM-as-a-judge"[10], for qualities that are difficult to measure with conventional code.[4]
- Human-in-the-loop review at important checkpoints.[4]
Open source tools and standards
[edit]Because AI observability is a new field, several open standards and open source tools have been created to avoid tying telemetry to a single vendor. The most notable effort is the set of semantic conventions for generative AI defined by OpenTelemetry, a Cloud Native Computing Foundation project. These conventions describe a common way to record model calls, token usage, tool and agent calls, and evaluation scores, so that telemetry produced by one tool can be read by another.[9] As of 2026[update], these conventions are still under active development and are not yet marked as stable.[9]
Open source instrumentation libraries can generate telemetry that follows these conventions automatically for common model providers and frameworks. Separately, several open source projects focus on tracing and evaluating machine learning and LLM applications, and some of them can export or import data in the OpenTelemetry format, which allows them to work together with general purpose observability backends instead of only their own dashboard.[11]
The following table lists representative open source tools used in AI observability pipelines. OpenTelemetry and MLflow are oriented specifically toward machine learning workloads; Prometheus and Grafana are general-purpose tools that commonly serve as the metrics and visualization backends to which AI-specific components export data.
| Tool | License | Type | Key capabilities for AI observability |
|---|---|---|---|
| OpenTelemetry | Apache 2.0 | Instrumentation standard | Vendor-neutral SDKs; semantic conventions for LLM calls, token usage, tool invocations, and agent spans[9] |
| MLflow | Apache 2.0 | AI/ML platform | LLM tracing with hierarchical span structure; LLM-as-a-judge automated evaluation; OpenTelemetry export[11] |
| Prometheus | Apache 2.0 | Metrics database | Time-series metrics collection and alerting; typically used for infrastructure-level signals such as latency and error rate |
| Grafana | AGPL-3.0 | Dashboard and alerting | Visualization of metrics, logs, and traces from multiple backends including Prometheus and OpenTelemetry sources |
Proprietary platforms
[edit]Several commercial platforms offer AI observability as a managed service, integrating tracing, evaluation, and monitoring into a single product. The following table lists representative vendors; it is not exhaustive.
| Product | Vendor | Focus | Key capabilities for AI observability |
|---|---|---|---|
| LLM Observability | Datadog | Full-stack observability with LLM layer | End-to-end tracing across prompts, retrieval, tool calls, and agent steps with latency, token usage, and error tracking; built-in and custom evaluators for hallucination, prompt injection, and PII detection; production regression testing against versioned datasets[12] |
| Arize AI | Arize AI | AI/ML observability | Auto-instrumentation across over 30 model providers and frameworks, built on the OpenInference open standard; evaluation at scale with alignment of automated and human judgement scores; output guardrails and alerting for production monitoring[13] |
| Weave | Weights & Biases | LLM and agent tracing | Agent-native tracing treating sessions, turns, steps, and sub-agents as first-class spans; pre-built safety scorers for hallucination, toxicity, and PII detection; automated alerting via webhooks and Slack[14] |
| LangSmith | LangChain | LLM application tracing and evaluation | Step-by-step agent tracing with OpenTelemetry support and multi-language SDKs; real-time dashboards for token usage, latency, and cost; online LLM-as-judge evaluation; automated clustering to surface failure patterns[15] |
Agent observability
[edit]
The observability of autonomous agents is often treated as a distinct sub-area, because agents navigate multi-step workflows, make autonomous decisions, and invoke external tools, producing execution paths that are more complex than those of single-prompt model calls. Practitioners distinguish evaluation, which tests whether an agent can perform a task before or during deployment, from observability, which monitors whether it is performing correctly once deployed.[4]
Tracing an agent execution is typically structured as a hierarchy of spans, in which each model invocation, tool call, memory access, or delegation to a sub-agent constitutes a child span of the enclosing request. This structure allows the latency, cost, and error state of each individual step to be examined in isolation, and makes it possible to identify which step in a multi-step pipeline produced an incorrect or unsafe intermediate result.[16] Capturing the intermediate reasoning that an agent produces before committing to an action is also treated as a distinct telemetry signal, because it allows operators to assess not only what the system did but why it chose to do it.[4]
Relation to MLOps
[edit]AI observability is treated in the literature as the runtime monitoring component of MLOps (machine learning operations), the set of practices that combines machine learning, software engineering, and DevOps disciplines to deploy and maintain ML systems in production. Monitoring is identified as one of the core functional components of the MLOps lifecycle, alongside data management, model training, and continuous delivery.[17]
The need for dedicated production monitoring of ML systems was identified as a source of hidden technical debt by Sculley et al. (2015), who showed that deployed ML pipelines incur ongoing maintenance costs from data dependencies that shift without notice, from feedback loops in which model outputs influence future inputs, and from undeclared consumers of model predictions, all of which make behavioral change difficult to detect with conventional software testing alone. AI observability provides the runtime telemetry required to surface such changes as they occur in production.[18]
MLOps describes the full lifecycle of an ML system from data preparation through training, deployment, and maintenance; AI observability refers specifically to the instrumentation and analysis that make the system's production behavior transparent. In this framing, AI observability is the operational monitoring layer within MLOps, with the additional requirement, for systems based on large language models or other generative models, that it track behavioral and semantic signals beyond the infrastructure metrics typical of conventional software systems.[17]
Relation to explainability
[edit]AI observability is related to but distinct from explainable artificial intelligence (XAI), the field that studies how model decisions can be made interpretable to users and stakeholders. The two fields address different questions: observability asks whether a system in production can be shown to be behaving correctly from external signals, while explainability asks why a particular output was produced given the model's internal parameters.[19]
XAI methods, such as feature attribution techniques, counterfactual explanations, and surrogate models, typically operate by examining model internals or constructing approximations of individual predictions.[19] Observability, by contrast, collects external signals including inputs, outputs, latency, and drift measures, without requiring access to the model's weights or architecture. This makes observability applicable to systems for which internal state is unavailable, including models accessed through commercial APIs.[20]
The two approaches are considered complementary. Feature attribution scores or other XAI outputs can be treated as additional observability signals and stored alongside conventional telemetry, making it possible to monitor shifts in the reasoning patterns behind model outputs over time. Conversely, observability data that reveals a change in a model's output distribution may prompt the application of XAI methods to investigate the underlying cause.[19]
Regulatory and compliance context
[edit]National and regional regulatory instruments have begun to codify production-monitoring obligations that align with what AI observability tools are built to do.
The Artificial Intelligence Act, Regulation (EU) 2024/1689 adopted by the European Union in 2024, lays down a risk-based framework for AI systems.[21] Article 12 requires that high-risk AI systems technically allow for the automatic recording of events over the lifetime of the system, so that logs can be used to identify risk situations and support post-market monitoring.[21] Article 72 requires providers of those same systems to establish and document a post-market monitoring program that actively and systematically collects, documents, and analyzes relevant performance data throughout the system's lifetime.[21] For covered systems, the two provisions together effectively mandate the instrumentation and logging infrastructure that AI observability is designed to provide.[21]
The National Institute of Standards and Technology (NIST) published the Artificial Intelligence Risk Management Framework (AI RMF 1.0) in 2023 as a voluntary guide for managing AI risk across the system lifecycle.[22] The framework's MEASURE function calls for quantitative, qualitative, or mixed-method tools to analyze and monitor AI risk on an ongoing basis.[22] Subcategory MEASURE 2.4 states that the functionality and behavior of the AI system and its components should be monitored when in production, which is the core purpose of AI observability telemetry pipelines.[22]
Security, privacy and governance
[edit]Because AI observability may involve capturing prompts and responses, which can contain personally identifiable information (PII), sensitive data is typically redacted before storage to reduce privacy and compliance risk.[23][4] Observability data is also used to maintain audit trails, enforce access control, and detect anomalous or malicious usage such as excessive querying, prompt injection attempts, or attempted data exfiltration.[23] These functions connect AI observability to the broader fields of AI safety and AI governance.[4]
Challenges and limitations
[edit]Several challenges have been noted. Machine learning models are often described as "black boxes" whose internal decision-making is not directly interpretable, complicating the inference of internal state from outputs.[20] Defining objective measures of output quality is difficult, and a system's infrastructure-level health may be uncorrelated with the correctness of its outputs.[6] Capturing detailed telemetry, particularly the full content of prompts and responses, also carries storage costs and privacy implications.[4]
See also
[edit]References
[edit]- ↑ Kálmán, Rudolf E. (1960). "On the General Theory of Control Systems". IFAC Proceedings Volumes. 1 (1): 491–502. doi:10.1016/S1474-6670(17)70094-8.
- 1 2 3 4 Majors, Charity; Fong-Jones, Liz; Miranda, George (2022). Observability Engineering. O'Reilly Media. ISBN 978-1-4920-7644-5.
- 1 2 Lu, Jie; Liu, Anjin; Dong, Fan; Gu, Feng; Gama, João; Zhang, Guangquan (2019). "Learning under Concept Drift: A Review". IEEE Transactions on Knowledge and Data Engineering. 31 (12): 2346–2363. arXiv:2004.05785. Bibcode:2019ITKDE..31.2346L. doi:10.1109/TKDE.2018.2876857.
- 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Mohammadi, Mahmoud; et al. (2025). "Evaluation and Benchmarking of LLM Agents: A Survey". Proceedings of the 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining. doi:10.1145/3711896.3736570.
- 1 2 Sridharan, Cindy (2018). "The Three Pillars of Observability". Distributed Systems Observability. O'Reilly Media. ISBN 978-1-4920-3342-4.
- 1 2 3 Huang, Lei; Yu, Weijiang; Ma, Weitao; et al. (2025). "A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questions". ACM Transactions on Information Systems. 43 (2): 1–55. doi:10.1145/3703155.
- 1 2 Zhou, Xiang; Peng, Xin; Xie, Tao; et al. (2021). "Enjoy your observability: an industrial survey of microservice tracing and analysis". Empirical Software Engineering. 27 (1) 25. doi:10.1007/s10664-021-10063-9. PMC 8629732. PMID 34867075.
- 1 2 Hinder, Fabian; Vaquet, Valerie; Hammer, Barbara (2024). "One or two things we know about concept drift: a survey on monitoring in evolving environments. Part A: detecting concept drift". Frontiers in Artificial Intelligence. 7 1330257. doi:10.3389/frai.2024.1330257. PMC 11220237. PMID 38962502.
- 1 2 3 4 5 "Semantic conventions for generative AI systems". GitHub. OpenTelemetry. Retrieved 2026-07-01.
- ↑ Gu, Jiawei; Jiang, Xuhui; Shi, Zhichao; Tan, Hexiang; Zhai, Xuehao; Xu, Chengjin; Li, Wei; Shen, Yinghan; Ma, Shengjie; Liu, Honghao; Wang, Saizhuo; Zhang, Kun; Lin, Zhouchi; Zhang, Bowen; Ni, Lionel (2026). "A survey on LLM-as-a-judge". The Innovation. 7 (6) 101253. Bibcode:2026Innov...701253G. doi:10.1016/j.xinn.2025.101253. ISSN 2666-6758. PMC 13237853. PMID 42254963.
- 1 2 "OpenTelemetry GenAI Semantic Conventions". MLflow. Retrieved 2026-07-01.
- ↑ "LLM Observability". Datadog. Retrieved 2026-07-02.
- ↑ "Arize AI". Arize AI. Retrieved 2026-07-02.
- ↑ "Weave". Weights & Biases. Retrieved 2026-07-02.
- ↑ "LangSmith". LangChain. Retrieved 2026-07-02.
- ↑ Shamim, Isha; Singhal, Rekha (2025). "Methodology for Quality Assurance Testing of LLM-based Multi-Agent Systems". Proceedings of the 4th International Conference on AI-ML Systems. doi:10.1145/3703412.3703439.
- 1 2 Kreuzberger, Dominik; Kühl, Niklas; Hirschl, Sebastian (2023). "Machine Learning Operations (MLOps): Overview, Definition, and Architecture". IEEE Access. 11: 31866–31879. Bibcode:2023IEEEA..1131866K. doi:10.1109/ACCESS.2023.3262138.
- ↑ Sculley, D.; Holt, Gary; Golovin, Daniel; et al. (2015). "Hidden Technical Debt in Machine Learning Systems". Advances in Neural Information Processing Systems. Vol. 28. pp. 2503–2511.
- 1 2 3 Barredo Arrieta, Alejandro; Díaz-Rodríguez, Natalia; Del Ser, Javier; et al. (2020). "Explainable Artificial Intelligence (XAI): Concepts, taxonomies, opportunities and challenges toward responsible AI". Information Fusion. 58: 82–115. arXiv:1910.10045. doi:10.1016/j.inffus.2019.12.012.
- 1 2 Şahin, Emrullah; Arslan, Naciye Nur; Özdemir, Durmuş (2024). "Unlocking the black box: an in-depth review on interpretability, explainability, and reliability in deep learning". Neural Computing and Applications. 37 (2): 859–965. doi:10.1007/s00521-024-10437-2.
- 1 2 3 4 "Regulation (EU) 2024/1689 of the European Parliament and of the Council of 13 June 2024 laying down harmonised rules on artificial intelligence (Artificial Intelligence Act)". Official Journal of the European Union. 12 July 2024. Retrieved 2026-07-02.
- 1 2 3 National Institute of Standards and Technology (2023). Artificial Intelligence Risk Management Framework (AI RMF 1.0) (Report). Gaithersburg, MD: National Institute of Standards and Technology. doi:10.6028/NIST.AI.100-1.
- 1 2 Gulyamov, Saidakhror; Gulyamov, Said; Rodionov, Andrey; et al. (2026). "Prompt Injection Attacks in Large Language Models and AI Agent Systems: A Comprehensive Review of Vulnerabilities, Attack Vectors, and Defense Mechanisms". Information. 17 (1): 54. doi:10.3390/info17010054.
External links
[edit]- Robertson, Derek; Kosinski, Matthew (30 December 2025). "What is AI observability?". IBM Think. Retrieved 2026-07-03.
- "OpenTelemetry for Generative AI". OpenTelemetry. 5 December 2024. Retrieved 2026-07-03.
- "AI Risk Management Framework". National Institute of Standards and Technology. 12 July 2021. Retrieved 2026-07-03.
- "Regulation (EU) 2024/1689 (Artificial Intelligence Act)". EUR-Lex. Retrieved 2026-07-03.