Inside this article
A machine-learning service can stay online and respond quickly yet make inaccurate predictions. It can also use irrelevant information or fail to complete a user’s task. A green dashboard for availability and speed won’t reveal those failures.
Observability means collecting evidence to understand how a service behaved and why. For AI services, that includes traffic, errors, latency, and infrastructure. It also includes details about model inputs, data, outputs, retrieval, and tool calls. These signals help operators investigate behavior that basic health checks cannot explain.
Why AI needs more than uptime monitoring
Traditional monitoring tells operators whether a service is reachable, how quickly it responds, and whether requests fail. Those measures still matter when software includes AI. The difference is that a successful request does not prove a successful result.
A conventional software endpoint often follows a predictable path: given the same inputs and code, it performs defined operations. A machine-learning model bases its output on patterns learned from data. Its behavior can change when the input data changes, when the model changes, or when conditions shift away from those represented in training data. Generative AI adds further variation: a model can produce different wording or reasoning paths, and the final answer may depend on retrieved documents or external tools.
An agent is a program that uses a model to choose and carry out steps. It might search a knowledge base and call a calendar service, then inspect the result before generating a response. If the response is wrong, the failure may have started before the model generated its final text. The search could have returned the wrong document, or a tool could have supplied incomplete information.
Observability needs to connect the user’s request to each relevant step and to the result. A total request duration shows how long the whole interaction took. A trace records connected operations and when they happened. It can show how much time went to retrieval, the model generating its output, a tool call, or a retry.
Signals to measure AI performance
The useful signals depend on the task and its risks. A fraud model, a document summarizer, and a customer-support agent do not need the same definition of a good result. The following categories provide a starting point:
| Layer | Signals to track | What they help explain |
|---|---|---|
| Service and infrastructure | Traffic, errors, latency, timeouts, retries, and resource use | Whether requests reach the service and where technical failures occur |
| Data and model | Missing or malformed inputs, changes in input patterns, model version, and performance against known outcomes | Whether the model receives different data or its measured performance changes |
| Generative AI calls | Model provider and version, inference duration, time to first token, and input and output token counts | How a response was generated, how long generation took, and how much text the model processed |
| Retrieval and tools | Retrieved material, retrieval duration, tool calls, tool results, and failures | Whether the model had useful context and whether its external actions worked |
| Output and user outcome | Task-specific quality, factual grounding, safety, instruction following, user feedback, and business results | Whether the response helped the user and met the application’s requirements |
For a support assistant, a useful check might assess whether the answer follows the customer’s request and uses the relevant policy document. For a prediction model, operators might compare predictions with outcomes once those outcomes become available. These checks should reflect the actual task rather than rely on one score for every kind of AI.
Drift, a change in input patterns, signals a need to investigate. It does not by itself prove that accuracy has fallen. Measuring actual model performance requires reliable outcomes, such as labels showing what happened after a prediction. Those outcomes can arrive late or remain unavailable for some requests, so operators need to distinguish early warning signs from confirmed quality problems.
Common ways to record generative AI activity are still developing. OpenTelemetry’s GenAI conventions, for example, describe signals for model inference, retrieval, and tool execution, but remain in development. They point toward useful ways to connect AI operations without establishing a settled format that every provider and service uses.

Trace the failed answer
When a user reports a bad result, start with the original request and follow its execution path. Re-running the same request may produce a different response or a different sequence of actions, so a later run cannot replace the evidence from the incident.
To investigate, follow the request through these steps:
- Find the request or session with a trace or correlation identifier linking related operations.
- Reconstruct the sequence of model calls, searches, tool calls, retries, and external service responses.
- Inspect the relevant prompt or instructions, retrieved material, tool arguments and results, model version, and configuration, where collection and access are permitted.
- Locate the first step that went wrong. A poor final response might follow an irrelevant search result or malformed tool output.
- Compare the case with similar requests or a known evaluation set, then check whether the final result actually failed the task.
The trace shows what happened, but it does not prove that the answer was correct, safe, or useful. That requires an appropriate evaluation or review of the outcome. For open-ended tasks, human review can help when an automated score does not capture the relevant judgment.
Long AI-agent traces can also be difficult to diagnose. In the TRAIL research benchmark, which used 148 human-annotated traces, the best-performing evaluated model scored 11% on the trace-debugging task. That result applies to the benchmark, not to production incident rates or every debugging method. It does show why collecting a trace alone does not automatically reveal the cause.
Why service metrics miss AI quality
A model endpoint can respond quickly without errors while producing a wrong or irrelevant answer. Latency and error rates describe the service path; they do not measure whether the model’s decision served the user. That gap matters in predictive systems too: a model can keep returning scores while input patterns or real-world outcomes change.
Automated evaluation adds another measurement problem. A language model can judge open-ended answers against criteria, but it also needs testing. A 2025 study examined 15 language-model judges across 22 tasks and more than 150,000 evaluation instances, finding that position bias can affect judgments. The study does not establish how often a particular production evaluator makes mistakes. It does support checking whether scoring changes when answer order or presentation changes.
Observability improves the evidence available for detection and diagnosis; it does not remove uncertainty or guarantee correctness. A drift alert calls for investigation. A quality score is meaningful only if its criteria match the task and the scoring method has been checked. Where direct outcomes are missing, operators should label proxy measures as proxies rather than treat them as proof of quality.
Protect sensitive AI data
Prompts, user messages, generated answers, and tool arguments can contain personal or confidential information. Capturing all of that content in general-purpose logs can create privacy and security risks, as well as storage costs. Operators should decide which content they need to inspect, who can access it, and how long to keep it.
Start by recording basic details about every request (metadata) and its trace structure. Capture sensitive content only when there is a clear reason and suitable access controls. Sampling can reduce volume, but it should not leave operators unable to investigate the cases most likely to matter. For example, a service might preserve more detail for failed evaluations or tool errors while limiting routine content capture.
Keep the model and configuration identifiers with each trace. Without them, operators can see that two answers differ but cannot tell whether the service used a different model or settings. Keeping retrieved sources and tool results also helps distinguish a model’s response from the evidence it received, subject to the same privacy and retention rules.

Measure the AI task
Start by defining what a successful outcome means for the specific AI feature. For a document assistant, that might include whether an answer uses the right source and follows the requested format. For a classifier, it might depend on later confirmed outcomes and the cost of different kinds of mistakes.
Then connect those outcome checks to service traces, model calls, data signals, and tool activity. Set alerts for technical failures and meaningful changes in task performance, while treating drift and proxy scores as prompts for review rather than automatic diagnoses. When a release changes the model or retrieval behavior, compare the affected outcomes with a relevant baseline.
This approach keeps monitoring useful without collecting every possible detail. It also gives operators a clearer path from an alert to a cause, and from a cause to a response such as correcting a data source, changing a tool integration, revising an evaluation, or rolling back a model change.
Created with AI assistance using published sources. Illustrations are AI-generated. Redbag does not claim hands-on testing or exclusive reporting. Check the linked sources for changing product details.
Our approach ↗
