LLM observability lets teams trace, monitor, and evaluate generative AI in production. Learn the three pillars, the metrics that matter, and best practices.

LLM observability is the practice of instrumenting large language model applications so you can trace, monitor, and evaluate their behavior in production. It gives engineering and AI teams end-to-end visibility into what a model received, which context and tools it used, what it returned, what it cost, and whether the answer was actually good.
Traditional monitoring tells you a system is up and fast. It does not tell you whether your retrieval-augmented generation (RAG) chatbot, which answers from documents it looks up at request time, just confidently invented a refund policy, leaked a customer record, or quietly tripled your token bill. Large language models are non-deterministic, prompt-driven, and judged on the quality of what they say, not just whether the request returned a 200. That is where LLM observability comes in: generative AI applications need their own class of observability.
This guide is written for the ML, platform, and engineering teams building and operating LLM-powered products, and for the leaders accountable for them.
In plain terms, LLM observability is the ability to explain any answer your language model application gives. Also called gen AI observability, it captures telemetry across the full request lifecycle, from user input and retrieved context through model inference and tool calls to the final response, then scores that response for quality, latency, and cost.
Where conventional application performance monitoring answers "is the service healthy?", LLM observability answers a harder question: "is the model doing the right thing, for the right reasons, at an acceptable cost?" That difference comes from three properties unique to LLM systems:
LLM observability is a specialized branch of the broader practice of AI observability for AI and agent systems, focused specifically on the prompt-driven, non-deterministic nature of language models.
Those three properties are why the core risk of running LLMs in production is that failures are often silent. There is no stack trace when a model hallucinates. The dashboards stay green while the experience degrades. The more autonomy you give a model, the more this matters.
Without LLM observability, teams routinely ship regressions they cannot see: a prompt change that quietly raises hallucination rates, a retrieval pipeline returning stale documents, a model upgrade that shifts tone or breaks a downstream parser, or an agent that loops and burns thousands of tokens on a single request. Each of these passes every traditional health check. Token spend, in particular, can climb without warning, and unbounded consumption is listed as LLM10:2025 in the OWASP Top 10 for LLM Applications.
Application performance monitoring (APM) was built for deterministic services where correctness is implicit in a successful response. LLM applications break that assumption.
| Concern | Traditional APM | LLM observability |
|---|---|---|
| Definition of "working" | Returns without error | Returns a grounded, relevant, safe answer |
| Primary signals | Latency, error rate, throughput | Those, plus tokens, cost, quality, hallucination, drift |
| Unit of debugging | The request/response | The full prompt, context, tool calls, and completion |
| Correctness | Assumed if 2xx | Must be explicitly evaluated |
| Determinism | Expected | Not present; observe distributions |
Catching silent failures takes more than one kind of signal. LLM observability rests on three pillars that together give end-to-end visibility into model behavior, and each one gets its own section later in this guide:
Underneath all three sit raw logs and events, the same records traditional observability groups as metrics, events, logs, and traces (MELT). What turns them into LLM observability is a shared trace ID. Every span and every eval score for a request carries it, and metrics link back to example traces, so you can move from a cost spike to the exact conversation behind it, or from a low quality score to the span that caused it. The same linked records also feed governance and audit, which the governance section covers.
Tools that only do one pillar leave blind spots. Tracing without evaluation tells you what happened but not whether it was good. Evaluation without tracing tells you quality dropped but not where to fix it.
Tracing is the pillar the other two hang off, so it's worth seeing what a trace actually contains. LLM observability works by instrumenting your application to emit structured telemetry as each request flows through it, then collecting and analyzing that telemetry. The central data structure is the trace: a timeline of everything that happened to handle one request, broken into spans for each meaningful step.
Consider a RAG request in a support assistant. A single trace contains a span for each of these steps:
LLM tracing makes this chain inspectable so you can pinpoint exactly where a bad answer originated, for example a retrieval span that returned irrelevant context rather than a model that hallucinated unprompted.
Agents add more spans to the same trace. When an agent plans and acts, the trace records the agent invocation and every tool it executes, and the OpenTelemetry GenAI conventions name these operations explicitly, for example create_agent, invoke_agent, and execute_tool. Many of those tools now sit behind the Model Context Protocol (MCP), the open standard agents use to discover and call tools on external servers. Tracing each MCP tool call with its arguments, result, and latency is what lets you explain an agent's actions after the fact, not just its final answer.
Standardizing these attributes across providers is what the OpenTelemetry GenAI semantic conventions set out to do. The section on observability for generative AI in production shows how they fit into a full pipeline.
A single trace explains a single request. Aggregate the spans across all traffic and you get the second pillar: metrics. LLM observability metrics fall into two groups: operational metrics that describe system health, and quality metrics that describe whether the output is correct and safe. Strong programs track both, plus drift over time.
| Category | Metric | What it tells you |
|---|---|---|
| Operational | Latency (and time to first token) | Responsiveness and user experience |
| Throughput | Requests handled over time | |
| Error rate | Failed calls, timeouts, rate limits, and retries | |
| Token usage (input, output, cached, reasoning) | Consumption per request and in aggregate; reasoning tokens can be billed without appearing in the visible response | |
| Cost per request, feature, and tenant | Token counts translated into spend, attributed to whatever drove it | |
| Truncation rate (finish reason) | Share of responses cut off at the token limit instead of completing | |
| Quality | Groundedness / faithfulness | Whether the answer is supported by retrieved context (the key RAG metric) |
| Answer relevancy | Whether the response actually addresses the query | |
| Contextual precision / recall | Whether retrieval surfaced the right context | |
| Hallucination rate | Frequency of unsupported or fabricated claims, the core signal behind OWASP LLM09:2025 Misinformation | |
| Safety / toxicity | Harmful, biased, or policy-violating output | |
| User feedback | Ratings, edits, escalations, and corrections attached to the trace | |
| Cross-cutting | Drift | Gradual degradation in quality, latency, or cost over time |
Groundedness (also called faithfulness) is usually the most important quality metric for RAG systems because it captures whether the model stayed anchored to its sources or invented information. Several of these RAG metrics, such as answer relevancy and faithfulness, do not require ground-truth references, which makes them practical to run continuously on live traffic. On the cost side, attribute spend to a feature, tenant, or agent rather than only to the model. A monthly total tells you spend rose; it doesn't tell you who drove it.
Metrics can tell you that groundedness dropped. Evaluation is how that score gets produced in the first place. Because quality cannot be inferred from a status code, evaluation (often shortened to LLM evals) is inseparable from LLM observability. There are two complementary modes:
The scoring itself comes from a mix of methods, which differ in how much traffic they can cover and how much nuance they can judge:
Tag every eval run, online or offline, with the prompt version and model version it scored. When quality moves, those tags tell you whether a prompt edit, a model upgrade, or a shift in user inputs moved it.
For a deeper treatment of evaluation methodology, see our broader guide on AI observability and evaluation.
Observability for generative AI in production means instrumenting every model, agent, and tool call with OpenTelemetry so each request leaves a structured, vendor-neutral trace. A collector then samples, redacts, and routes that telemetry to the backends where engineers debug failures, score answer quality, and track token cost against budgets.
Eval scores only help if they land on the same traces as latency, cost, and tool calls. Getting them there is an architecture decision, and it starts with a question many teams ask after their first incident: why isn't logging prompts and responses enough?
The case for LLM observability for production chatbots beyond logs comes down to connection. A log line records that a chatbot received a question and returned an answer. It doesn't connect the retrieval that fed the answer, the tool call that changed a record, the retry that doubled the cost, or the eval score that flagged the reply as ungrounded. Traces do. Every span carries the same trace ID, so one bad conversation can be followed from the user's message to the document chunk that misled the model. Logs still matter as raw events inside those spans; they just aren't the whole picture.
The standard behind this is the OpenTelemetry semantic conventions for generative AI, an open, vendor-neutral specification for describing generative AI operations regardless of which model provider you use. The conventions define standardized spans for model, agent, and tool operations, metrics such as token usage and operation duration, and attributes for model name, parameters, token counts, and finish reasons. They also cover tool calls made over MCP.
Two caveats matter in production. First, the GenAI conventions are still in Development status, so attribute names can change between releases. Pin the conventions version your instrumentation emits and treat upgrades like any other schema migration. Second, the conventions are now maintained in a dedicated semantic-conventions-genai repository rather than in the main OpenTelemetry semantic conventions docs, so check there for the current spec. Prompt and completion content capture stays opt-in, which lets you decide which requests store full text at all.
Standardizing on OpenTelemetry matters for three reasons. First, it makes telemetry portable: you instrument once and can route data to different backends without re-instrumenting. Second, it makes signals comparable across providers and frameworks. Third, it is the most credible answer to "open source LLM observability," because you can build on an open standard and the OpenTelemetry Collector rather than locking into a proprietary agent, the motivation behind OpenTelemetry's GenAI work.
A production pipeline has four layers:
That last layer, the consumers, is where observability stops being only an engineering convenience. It is the foundation that AI governance, security, and compliance are built on. You cannot govern, secure, or audit behavior you cannot see.
The NIST AI Risk Management Framework organizes trustworthy AI into four functions, Govern, Map, Measure, and Manage, and its Measure function is explicitly about ongoing monitoring and evaluation of AI systems. In practice, the telemetry produced by LLM observability is what makes the Measure function operational: it is how you define signals, set thresholds, and detect when a system drifts outside acceptable bounds. NIST's Generative AI Profile goes further, identifying risk categories unique to or amplified by generative AI and mapping suggested monitoring actions to those functions.
Observability is also where many of the risks in the OWASP Top 10 for LLM applications become detectable. That guide explains each of the ten 2025 risks and how to mitigate them; the table below shows where six of them surface in your telemetry.
| OWASP risk (2025) | Where it shows up in telemetry | What to watch |
|---|---|---|
| LLM01:2025 Prompt Injection | Captured prompts and retrieved context | Injected instructions in user input or retrieved documents |
| LLM02:2025 Sensitive Information Disclosure | Completions | PII, secrets, or customer data in model output |
| LLM06:2025 Excessive Agency | Tool-call spans | Unexpected tools, arguments, or call volumes |
| LLM07:2025 System Prompt Leakage | Completions | System instructions echoed back to users |
| LLM09:2025 Misinformation | Evaluation scores | Falling groundedness, rising hallucination rate |
| LLM10:2025 Unbounded Consumption | Token and cost metrics | Spikes per user, session, or agent loop |
Without trace-level visibility, these risks are invisible until they cause an incident. For the strategic picture, see our guide to AI governance for autonomous agents and the data behind the agentic AI security gap.
Regulation points the same way. The EU AI Act requires high-risk AI systems to support automatic recording of events over their lifetime (Article 12) and requires providers to run post-market monitoring (Article 72). ISO/IEC 42001, the AI management system standard, likewise includes requirements for monitoring, measurement, analysis, and evaluation. LLM observability telemetry is the raw material for meeting both. If you're preparing for an AI audit of models and autonomous agents, trace and tool-call records are the evidence auditors ask for: which system or agent did what, with what inputs, and with what result.
This is the connection point to operating AI responsibly. Trace data and captured tool calls form the audit trail regulators and security teams expect, and they feed the identity, access, and governance controls that decide what an agent is allowed to do. If your teams are building toward governed, auditable AI agents, observability is the visibility layer those controls depend on.
Knowing what to capture is half the job. Most teams stumble on how they capture it, and on the failures that look like success:
Each of those mistakes has a matching habit. The teams that run LLMs well tend to build these in from the start:
With tracing, metrics, and evals now defined, it's easier to separate three terms that teams often use interchangeably, which causes real confusion when scoping tooling. The short version: monitoring tracks operational health, evaluation measures output quality, and LLM observability is the broader practice that unifies both with tracing so you can explain why the system behaved as it did.
| LLM monitoring | LLM evaluation | LLM observability | |
|---|---|---|---|
| Question it answers | Is the system healthy right now? | Is the output good? | What happened, and why? |
| Typical signals | Latency, error rate, token usage, cost | Groundedness, relevance, accuracy, safety | Traces + spans + monitoring + evals together |
| Time horizon | Real-time + trends | Offline tests + online sampling | Real-time debugging + historical analysis |
| Answers "why?" | No | Partially | Yes |
Monitoring and evaluation are each necessary but not sufficient: latency and cost are easy to measure, but they only become actionable when paired with quality scores on the same trace.
Where those differences matter most depends on what you're running. These are the deployments where LLM observability earns its keep:
| Use case | What observability provides |
|---|---|
| RAG chatbots and support assistants | Going beyond logs: groundedness scoring and retrieval tracing that link each answer to the context that produced it, to catch hallucinations and bad context |
| Autonomous and multi-agent systems | Step-by-step tool-call tracing across agents, loop and cost detection, excessive-agency monitoring, and debugging of hand-offs between agents |
| Agents calling tools through MCP servers | Per-call traces with tool name, arguments, result, latency, and the identity the agent acted as |
| Copilots and assistants in products | Latency and quality tracking tied to user feedback and satisfaction |
| Content moderation and safety filters | Safety scores and false-positive rates tracked on sampled traffic, so filters stay strict without blocking legitimate requests |
| Regulated and enterprise deployments | Audit trails and measurable risk signals to support governance and compliance |
Those use cases set your requirements. When evaluating LLM observability tools or an LLM observability platform, focus on criteria rather than logos. The right choice depends on your stack, scale, and governance needs.
| Criterion | Why it matters |
|---|---|
| Open-standard support | Native OpenTelemetry GenAI support keeps you portable and avoids lock-in |
| Conventions version support | The GenAI conventions are still changing; check which version a tool ingests and how it handles upgrades |
| Evaluation depth | Built-in evals (LLM-as-judge, RAG metrics, human review) reduce custom work |
| Tracing for RAG and agents | Multi-step and tool-call tracing is essential for agentic systems |
| MCP tool-call coverage | Agents increasingly act through MCP servers; each call, its arguments, and its result belong on the trace |
| Cost and token tracking | First-class spend visibility prevents budget surprises |
| Data residency and PII controls | Redaction, retention, and residency options for sensitive data |
| Governance and audit integration | Whether traces feed your audit, security, and governance workflows |
Build vs buy: building on open source LLM observability (OpenTelemetry plus a collector and your own dashboards and evals) maximizes control and avoids lock-in, at the cost of engineering effort. A managed platform gets you running faster with built-in evals and dashboards, at the cost of evaluation and integration work. Many teams start on open standards and layer a platform on top, which is viable precisely because the data model is standardized. If you are evaluating the wider tooling landscape, our guide to choosing an AI agent platform covers the capabilities to look for.
Whichever approach you choose, the rollout follows the same sequence:
LLM observability is the practice of tracing, monitoring, and evaluating large language model applications in production. It records each request's input, retrieved context, tool calls, output, token cost, and quality score on one trace, so teams can explain why a model answered the way it did and fix problems before users notice them.
Monitoring tracks operational health such as latency, error rate, and cost in real time. LLM observability is broader: it combines monitoring with request-level tracing and output evaluation so you can explain why the system behaved as it did, including whether the answers were actually good.
The three pillars are tracing, metrics and monitoring, and evaluation. Tracing records the full execution path of each request, span by span. Metrics and monitoring aggregate operational signals like latency, token usage, and cost. Evaluation scores output quality automatically and with human review. A shared trace ID ties all three together.
No. Application performance monitoring assumes a request is correct if it succeeds. LLM applications are non-deterministic and judged on output quality, so observability adds prompt and completion capture, token and cost tracking, and explicit quality evaluation that APM does not provide.
Logs record that a chatbot received a message and sent a reply, but not why the reply was wrong. LLM observability links each conversation turn to the retrieved documents, tool calls, token cost, and quality score on one trace, so teams can find the exact step that caused a hallucination, a leak, or a cost spike.
Track operational metrics (latency, time to first token, throughput, error rate, token usage, cost per request, and truncation from finish reasons) and quality metrics (groundedness or faithfulness, answer relevancy, contextual precision and recall, hallucination rate, safety, and user feedback). Then watch all of them for drift as prompts, models, and real-world inputs change.
Primarily through groundedness or faithfulness scoring, which checks whether each claim in a response is supported by its retrieved context. Teams usually automate this with LLM-as-a-judge evaluation on sampled production traffic, calibrate the judge against human-labelled examples, and track the resulting hallucination rate over time, since hallucination is a core cause of OWASP's LLM09:2025 Misinformation risk.
It is using a language model to score another model's output against defined criteria, such as relevance or groundedness. It scales quality evaluation across large traffic volumes and works best when the judge is calibrated against a human-labelled sample and re-checked whenever the judge model or prompt changes.
OpenTelemetry's GenAI semantic conventions define a vendor-neutral way to describe generative AI operations: spans for model, agent, and tool calls, metrics like token usage, and attributes for model metadata, so telemetry stays portable across providers and backends. The conventions now live in a dedicated GenAI repository and are still in Development status, so pin the version you emit.
Observability produces the telemetry that frameworks like the NIST AI Risk Management Framework's Measure function require for ongoing monitoring, and it makes risks such as those in the OWASP LLM Top 10 detectable. Trace and tool-call data form the audit trail that governance and compliance depend on.
LLM observability is the difference between hoping your AI behaves and knowing how it behaves. It is a distinct discipline from traditional monitoring, built on tracing, metrics, and evaluation, grounded in open standards like the OpenTelemetry GenAI conventions, and it is the visibility layer that governance, security, and compliance for generative AI in production ultimately rest on.
If you are moving from experimenting with LLMs to operating them responsibly at scale, the next step is connecting that visibility to control. See how an AI agent platform provides the identity, audit logging, and governance layer that turns observability into accountable, secure AI agents.
Keep reading
ISO/IEC 42001 is the certifiable standard for an AI management system. What clauses 4-10 and the 38 Annex A controls require, and how certification works.
Written by
Agen.co
What is an AI audit? How companies audit AI models, agent actions, decisions and data sources, the audit trail behind them, and how to get audit-ready.