What happens when your AI feature starts giving wrong answers but every dashboard stays green? That gap, between “the system is up” and “the system is right,” is where AI observability earns its keep. Traditional monitoring tells you whether a server responds. Observability for AI tells you whether a model still makes sense, costs what you expect, and can be explained six months from now when a regulator or a customer asks why it said what it said. (Observability (software))
This article covers the practices that hold up in production: what to instrument, how to control cost and privacy, and where the emerging standards and laws actually point.
Why AI observability is not just monitoring with extra steps
Classic application monitoring was built for deterministic software. The same input produces the same output, so an error rate is a meaningful signal. Large language models break that assumption. Two identical prompts can yield different answers, and a technically successful response (HTTP 200, low latency) can still be factually wrong, off-brand, or unsafe.
That is why teams pair traces with evaluations. Traces record what happened: the prompt, the retrieved context, the model version, token counts, latency, and the response. Evaluations score whether the output was good, using automated judges, rule-based checks, or human review. Neither is sufficient alone. A trace without an eval tells you the model ran. An eval without a trace tells you it scored badly but not why.
It also helps to start from an established baseline. The four golden signals of latency, traffic, errors, and saturation remain the foundation of any monitoring program, and they still apply to AI systems. For AI, practitioners typically add two more signals: output quality and cost per interaction. Treat those six as your minimum dashboard.
Build on open standards instead of a single vendor’s SDK

The single most practical decision is to instrument with OpenTelemetry, the vendor-neutral standard for traces, metrics, and logs. It defines APIs, SDKs, and a wire protocol (OTLP), so the data you collect today can move to a different backend tomorrow without re-instrumenting the application. Its semantic conventions also define a shared attribute schema for generative AI spans, including model name and token counts, which keeps your telemetry comparable across teams. The OpenTelemetry documentation on semantic conventions explains the attribute schema in detail. (What is OpenTelemetry?)
In practice, this means a few concrete habits:
- Wrap every model call in a span and attach the model identifier, version, prompt template ID, token counts, and finish reason as attributes.
- Propagate trace context from the user request through retrieval, tool calls, and the model invocation, so one trace shows the whole chain.
- Emit evaluation scores as span events or separate metrics, tagged with the evaluator name and version.
- Keep logs, metrics, and traces correlated by trace ID rather than stored in disconnected silos.
The most common mistake here is instrumenting only the model call and ignoring retrieval. When an answer is wrong, the cause is frequently a bad document, a stale index, or a chunking problem, not the model. A trace that stops at the API boundary hides the real culprit. (News)
Log prompts and responses without creating a privacy liability
Full prompt and response capture is the most useful and most dangerous observability practice. It is useful because you cannot debug what you cannot see. It is dangerous because prompts routinely contain personal data, credentials, and confidential business context.
The regulatory backdrop is not abstract. The EU AI Act, which entered into force on 1 August 2024, includes logging and post-market monitoring duties for general-purpose and high-risk systems, with phased application dates. The official text of the EU AI Act sets out those obligations. Meanwhile, data-minimization principles under GDPR Article 5 mean you should collect only what you need and keep it only as long as necessary; the article on GDPR principles of processing explains the underlying rules.
What works in practice:
- Redact at the edge. Apply PII filtering in the SDK or collector before data leaves the application, not in a downstream job.
- Store hashes for high-volume paths. Keep a hash of the prompt for correlation and full text only for sampled or flagged traces.
- Set retention explicitly. Thirty days for raw prompts and longer for aggregates is a common split.
- Control access by role. Engineers debugging an incident rarely need the same view as a compliance auditor.
A frequent failure is treating redaction as a one-time project. New fields get added to prompts, and the filter silently misses them. Add a test that fails when an unredacted pattern appears in a staging trace.
Control cost and volume with sampling that respects errors
At scale, storing every full LLM trace is expensive, and most of it is boring. Tail-based sampling is the standard answer: keep every trace that errored or ran slowly, and sample the rest at a low rate. The OpenTelemetry Collector supports this pattern, and it works well for AI workloads because the interesting traces are usually the outliers.
A practical sampling policy looks like this:
| Trace type | Retention decision | Why |
|---|---|---|
| Errors and timeouts | Keep 100% | Root-cause analysis needs complete data |
| Low evaluation scores | Keep 100% | Quality regressions hide in the tail |
| High token or cost spikes | Keep 100% | Cost anomalies need full context |
| Routine successful calls | Sample 1–5% | Enough for baselines and trends |
| Sensitive-data paths | Hash only | Reduces exposure and storage |
Track cost per request, per user, and per feature as first-class metrics. Token counts alone are not enough, because a prompt template change can double context length without changing request volume. Teams that only watch monthly spend discover the problem a month late.
Monitor quality and drift as separate signals
Model drift and data drift are distinct failure modes, and both are quiet. Data drift means the inputs have shifted, for example a new customer segment phrasing questions differently. Model drift means the relationship between inputs and outputs has degraded, often after a provider silently updates the underlying model behind an API alias.
Research on detecting dataset shift in deployed models established that silent accuracy degradation is a primary failure mode, and the paper on detecting dataset shift with statistical tests remains a useful entry point for the methods. The practical takeaway is to monitor the input distribution, not just the output.
Concrete practices that hold up:
- Pin model versions where the provider allows it, and treat a version change as a deployable event with its own evaluation run.
- Run a fixed golden dataset of a few hundred labeled examples on a schedule and alert on score drops.
- Track output-level statistics such as refusal rate, response length, and citation presence; sudden shifts often precede visible quality complaints.
- Segment metrics by customer tier, language, and prompt template, because aggregate scores hide localized failures.
A common mistake is relying on a single LLM-as-judge score. Judges have their own biases and can drift when the judge model changes. Use at least two evaluation methods, and periodically calibrate automated scores against human review. (Blog)
Make rollback and versioning first-class controls
When an AI feature misbehaves, the fastest fix is usually to revert to a known-good prompt or model version, not to retrain anything. That requires prompt versioning and model rollback to be treated like code deployment, with the same discipline around change records.
In practice, this means every trace carries the prompt template version and model version, and every version is reproducible. If you cannot reconstruct exactly which prompt produced a given output three weeks ago, your observability is incomplete for incident response and for regulatory audit alike.
A useful exercise is to run a game day: pick a random trace from last month and try to explain the output using only your observability data. If it takes more than an hour, fix the gaps.
Map your controls to a recognized risk framework
Observability is not only an engineering concern. The NIST AI Risk Management Framework, published in January 2023 with a Generative AI Profile added in July 2024, organizes AI risk work into govern, map, measure, and manage functions. The NIST AI Risk Management Framework page describes those functions in full. The measure and manage functions map almost directly onto monitoring and incident response, which makes the framework a useful checklist for deciding what to instrument.
One honest caveat: there is no single ratified standard specifically for AI observability. OpenTelemetry’s generative AI conventions, the NIST framework, and the EU AI Act’s logging duties overlap but are not harmonized, and vendors define “LLM observability” differently. Teams should expect to reconcile them rather than assume one covers all.
Conclusion
AI observability works when it is built on open standards, instrumented end to end, and honest about the trade-off between visibility and privacy. Start with the golden signals plus quality and cost. Trace the whole chain, not just the model call. Redact early, sample smartly, and version everything so you can explain any output later. Then test your setup with a real question: could you reconstruct why the model said what it said? If the answer is yes, you are ahead of most teams shipping AI today.
For ongoing coverage of tooling changes and platform news, the news section and the cloud category are worth following, and the blog carries deeper write-ups on implementation patterns.
FAQ
What is AI observability?
AI observability is the practice of collecting traces, metrics, logs, and evaluation scores from AI systems so teams can understand why a model produced a given output. It goes beyond uptime monitoring by capturing prompt and response data, token and cost accounting, and quality signals, which matters because LLM outputs are non-deterministic. (Cloud)
How is AI observability different from traditional APM?
Traditional application performance monitoring assumes deterministic behavior, so error rates and latency are strong signals. AI systems can return a successful response that is wrong, unsafe, or off-brand. Observability for AI therefore adds evaluations, drift detection, and prompt-level tracing on top of the usual latency, traffic, errors, and saturation metrics.
Should you log full prompts and responses?
Only with guardrails. Full capture is the most useful debugging tool, but prompts often contain personal or confidential data. Redact sensitive fields at the SDK or collector layer, set explicit retention limits, restrict access by role, and store hashes instead of full text for high-volume routine traffic.
What is tail-based sampling and why does it matter for LLM traces?
Tail-based sampling decides whether to keep a trace after it completes, based on its outcome. You keep every trace that errored, ran slowly, scored poorly, or spiked in cost, and sample the routine successes at a low rate. This cuts storage costs dramatically while preserving the traces you actually need for debugging.
How do you detect model drift in production?
Monitor the input distribution as well as the output. Pin model versions, run a fixed golden dataset of labeled examples on a schedule, and alert when scores drop. Also track refusal rates, response length, and citation presence by segment, since aggregate scores can hide failures in a specific language or customer tier.
Which standards and regulations apply to AI observability?
OpenTelemetry provides the vendor-neutral telemetry standard, including semantic conventions for generative AI spans. The NIST AI Risk Management Framework offers a risk-management structure whose measure and manage functions map to monitoring. The EU AI Act adds logging and post-market monitoring duties with phased application dates. No single standard covers everything yet, so expect to reconcile them.







