What happens when your AI assistant gives a brilliant answer on Monday and a nonsense answer on Tuesday, with no code change in between? Traditional monitoring tools stare back blankly. They were built for systems that fail loudly, not systems that fail politely, in fluent prose, while every dashboard stays green.
That gap is exactly what LLM observability exists to close. It is the practice of instrumenting large language model applications so teams can see what went in, what came out, what it cost, how long it took, and whether the answer was actually any good. This article covers what it involves, why it is harder than classic monitoring, and what actually works in practice. (Observability)
What LLM observability actually means
There is no single standards-body definition of the term. It is an industry label, not a formal specification, and vendors stretch it in different directions. In practice, it means capturing four kinds of signal from an LLM application:
- Traces: the full path of a request through retrieval, prompt assembly, model calls, tool use, and post-processing.
- Inputs and outputs: prompts, completions, retrieved documents, and tool results.
- Operational metrics: token counts, latency per step, error rates, retry counts, and estimated cost.
- Quality signals: scores for relevance, groundedness, toxicity, and task success.
The first three extend classic observability, which rests on logs, metrics, and traces. The fourth is where things get strange. A web server either returns a 200 or it does not. A language model always returns something, and that something might be confidently wrong.
Why classic monitoring falls short

Traditional application monitoring assumes determinism. The same input produces the same output, so you can write assertions and alert on exceptions. LLM applications break that assumption in several ways at once.
Outputs vary between runs. Sampling settings, model version updates, and context changes all shift results. A prompt that worked last week can quietly degrade after a provider updates a model.
Failures look like successes. A hallucinated citation, a refund policy invented from thin air, or a retrieval step that pulled the wrong document all return HTTP 200. Nothing throws an exception.
Cost is a runtime variable. Because tokens are the billing unit, a single verbose prompt or an agent stuck in a loop can multiply spend without any infrastructure alarm firing.
Multi-step chains hide the fault. In a retrieval-augmented generation pipeline or an agent with tools, the bad answer may originate three steps before the final response. Without span-level tracing, you are debugging blind.
The tracing foundation: spans, context, and standards
The plumbing under most LLM observability tools is distributed tracing, a concept that predates language models by years. A trace is a tree of spans, where each span records one unit of work, its duration, and its parent. The W3C Trace Context recommendation defines how trace identifiers propagate between services, which lets a request be followed across an API proxy, a retrieval service, and a model provider.
The OpenTelemetry project, a vendor-neutral collection of APIs, SDKs, and a collector for traces, metrics, and logs, has become the common substrate many tools build on. Its documentation explains how the traces, metrics, and logs model fits together. The project has also been developing GenAI semantic conventions that propose standard attribute names for model name, token counts, and operation type, so telemetry from different frameworks can be compared. That work has been in experimental status, so check the current maturity before betting an architecture on it. (What is OpenTelemetry?)
A practical tip from teams doing this: instrument first, choose a backend second. If your spans follow open conventions, you can swap vendors later. If you hard-code a proprietary SDK into every service, migration becomes a rewrite.
What to capture, and what to leave out
The temptation is to log everything. That instinct creates two problems: storage bills that grow faster than usage, and a privacy exposure that legal teams notice immediately.
A workable capture list looks like this:
| Signal | Why it matters | Common mistake |
|---|---|---|
| Prompt template version | Ties quality changes to prompt edits | Logging only the rendered prompt, not the template ID |
| Retrieved document IDs | Lets you audit grounding | Storing full document text indefinitely |
| Token counts per step | Cost attribution and loop detection | Only tracking totals per request |
| Latency per span | Finds the slow retrieval hop | Measuring only end-to-end time |
| Model and version string | Explains sudden behavior shifts | Assuming the provider never changes models |
| Evaluation scores | Turns quality into a trend line | Scoring manually, once, at launch |
| User feedback signal | Ground truth from real users | Ignoring thumbs-down data already collected |
The privacy question deserves real attention. Prompts and completions frequently contain personal data, which brings data protection law into scope. Under the GDPR, principles like data minimization and storage limitation apply to telemetry just as they do to any other processing. Redaction at the SDK layer, short retention windows for raw text, and long retention only for aggregates are the patterns that hold up.
Regulation is pushing in the same direction. The EU AI Act sets logging and record-keeping expectations for providers of high-risk AI systems, with obligations phased in over several years. The exact scope depends on your system’s classification, so read the official regulation text rather than a vendor’s summary of it.
Evaluating quality when there is no ground truth
Operational metrics are the easy half. Quality is the hard half, because most production traffic has no reference answer to compare against.
Two approaches dominate. The first is LLM-as-a-judge, where a separate model scores outputs against a rubric. Research on judging LLM outputs with strong models found meaningful agreement with human preferences, while also documenting biases such as position bias and verbosity preference. The lesson for practitioners: judges are useful trend indicators, not oracles. Calibrate them against a small human-labeled set and re-check periodically.
The second is reference-free evaluation for retrieval pipelines. The RAGAS framework introduced metrics such as faithfulness, answer relevance, and context precision that can be computed without gold answers. These map onto the practical question every RAG team asks: did we retrieve the right thing, and did the model stick to it?
A third, underrated signal is user behavior. Thumbs-down clicks, immediate rephrasing of the same question, and abandoned conversations are cheap, honest labels. Feeding them into the same dashboard as judge scores gives a reality check. (News)
Cost and latency: the two numbers everyone watches
Token accounting is straightforward in principle and messy in practice. Every major API bills by tokens, and observability tools aggregate usage to estimate spend. The mess comes from attribution: which feature, which customer, which prompt version burned the budget?
Three habits pay off quickly. Tag every span with a feature name and, where appropriate, a tenant identifier. Alert on token counts per request alongside totals, because a runaway agent loop shows up as an outlier long before it shows up in the monthly bill. And track cache hit rates if your provider offers prompt caching, since a drop in cache hits can double costs overnight with no other visible symptom.
Latency has a similar shape. End-to-end p95 tells you users are unhappy. Per-span latency tells you why: a slow vector search, a retry storm against a rate-limited provider, or an overly long prompt inflating time-to-first-token.
A practical rollout sequence
Teams that get this right tend to follow a similar order. Doing it in this sequence avoids building dashboards nobody trusts.
- Wrap the model client. One shared wrapper captures prompts, completions, tokens, latency, and errors for every call. This single change delivers most of the value.
- Adopt open span conventions. Emit traces using standard attribute names so backends stay swappable.
- Add retrieval and tool spans. Instrument the steps around the model as well as the model itself.
- Redact and set retention. Decide what raw text is stored, for how long, and who can read it, before volume grows.
- Score a sample. Run automated evaluation on a slice of traffic rather than all of it, and calibrate against human labels.
- Wire alerts to leading indicators. Token outliers, judge-score drops, and retrieval miss rates beat waiting for user complaints.
The most common mistake is skipping step one and jumping to a fancy platform. Another is treating observability as a launch task rather than a habit. Prompt changes ship weekly; the instrumentation has to keep pace. Teams that publish their internal learnings, like the write-ups collected in this blog on 9481.org, often find that the discipline of explaining their setup sharpens it.
Where the tooling market stands
The market is crowded and moves fast. Open-source projects and commercial platforms both compete on trace UIs, evaluation suites, and prompt management. Some tools focus on logging at the API proxy, others on deep agent tracing, others on offline evaluation.
Two cautions are worth stating plainly. First, no vendor list is complete or stable for long, and popularity is not the same as fit. Second, the underlying data model matters more than the interface. If a tool stores traces in an open format and exports standard telemetry, switching costs stay low. If it does not, you are renting your visibility.
For teams tracking how cloud and platform choices intersect with AI tooling, the cloud coverage on 9481.org is a reasonable place to follow infrastructure-level developments that affect where telemetry lives and how it is governed.
Common mistakes that undermine the whole effort
A few failure patterns show up again and again.
Logging prompts but not versions. Without a template identifier, you cannot correlate a quality dip with the prompt edit that caused it.
Scoring everything with a judge. It is slow and expensive. Sampling a few percent of traffic usually finds the same problems.
Ignoring the retrieval layer. Many “model” failures are retrieval failures in disguise. If your traces stop at the model call, you will never see them.
Setting retention by default. Most platforms keep raw text for thirty days unless told otherwise. That default may not match your legal obligations.
Alerting on averages. Mean latency hides the tail that users actually feel. Watch percentiles.
Conclusion
LLM observability is less about buying a dashboard and more about building a habit: capture the right signals, keep them in an open format, and treat quality as something you measure continuously rather than assume. The technology is still settling. Semantic conventions are maturing, evaluation methods are being stress-tested, and regulation is arriving in stages. But the core discipline is stable and familiar. Know what your system did, why it did it, what it cost, and whether it helped. Teams that answer those four questions quickly will ship AI features with far fewer unpleasant surprises than teams that wait for a user to notice.
Frequently asked questions
What is LLM observability in simple terms?
It is the practice of recording what a language model application receives, produces, and costs, plus how good the output is. Think of it as a flight recorder for AI features: traces, prompts, token usage, latency, and quality scores, all connected so you can explain any single response after the fact.
How is LLM observability different from regular monitoring?
Regular monitoring assumes the same input gives the same output, so it alerts on errors and slow responses. LLM applications vary between runs and can fail while returning a normal response. Observability therefore adds evaluation of output quality and per-step tracing through retrieval and tool calls, beyond uptime and latency.
Do I need a paid platform to get started?
No. A shared wrapper around your model client that logs prompts, completions, token counts, latency, and errors captures most of the value. Emitting traces with open conventions keeps your options open, so you can add a backend later without rewriting instrumentation.
How should I evaluate answer quality in production?
Use a mix. Automated judges score a sample of traffic against a rubric, reference-free metrics check whether answers are grounded in retrieved context, and user signals like thumbs-down clicks provide ground truth. Calibrate the automated scores against a small human-labeled set and revisit them as models change.
What privacy rules apply to stored prompts and completions?
Prompts often contain personal data, so data protection law applies. Minimize what you store, redact sensitive fields at the source, and set retention windows deliberately rather than accepting platform defaults. If your system falls into a regulated category, logging obligations may also apply, so confirm the specifics against the official legal text.
How much traffic should I trace?
Trace all of it if storage allows, because rare failures are exactly the ones you need to reconstruct. If volume forces a choice, trace everything at the span level but sample the expensive parts, such as full-output evaluation and long-term raw text retention. Aggregates can live far longer than raw prompts.







