AI Observability: Tracing, Evaluation and Costs
Published Updated
AI observability records what happens inside a live AI system so your team can explain a bad answer, a slow response or a jump in cost. It links each request to the model, the information it used and any tools it called. Quality checks tell you which runs are worth investigating.
What AI Observability Means
AI observability connects a system’s inputs and outputs with the steps that produced them, their cost and any quality signals. A trace is the record of one request. Each operation in it, such as a document lookup or a model call, is a span with its own timing and result.
Application monitoring can tell you whether the request succeeded and how long it took. Predictive model monitoring often tracks shifts in input data and compares predictions with observed outcomes. A generative AI trace can explain why an answer was wrong even when every service returned successfully. For example, it can show that an assistant followed an obsolete policy retrieved from a search index.
What to Track in an AI System
Start with a trace that follows the request from the first prompt to the final answer. Record which prompt and model versions ran, which documents were retrieved and what each tool call returned. Keep the sequence and outcome of each step even when privacy rules require you to leave out the contents.
| Signal | What to record | What it helps you check |
|---|---|---|
| Latency | Total response time and the time spent in each operation | Whether search, a model call or a tool caused a delay |
| Token use and cost | Input and output tokens per model call, the model used and estimated cost per request | Whether higher traffic, longer inputs or retries drove a bill up |
| Error and refusal rates | Failed requests and policy refusals as separate shares of eligible requests | Whether an integration broke or the system began refusing questions it used to answer |
| User feedback and quality scores | Feedback tied to a trace, plus evaluation results by task and version | Which answers to inspect and whether quality shifted after a change |
For a customer chatbot, watch answer latency and whether people reach a human when they need one. For retrieval-augmented generation (RAG), record document IDs and versions so you can check whether the right source appeared and supported the answer. For agents, follow tool choices, retries, approvals and the actual result of any action. A tool reporting success does not tell you whether the agent chose the right action.
OpenTelemetry’s generative AI semantic conventions give instrumentation libraries shared names for operations and attributes such as model calls, token counts and tool executions. The generative AI span conventions are still in development. Check which version each library emits and whether your trace backend preserves the fields you use in dashboards and alerts.
Evaluating Answer Quality
Use a fixed evaluation set to catch regressions before release and sample live requests to find failures the set misses. These checks test the whole system. A model can do well in an isolated evaluation and still produce poor answers when retrieval hands it the wrong document.
- Build an offline set from representative tasks and past failures. Give each case a pass criterion that a reviewer can check. Include questions that the system must decline or pass to a person.
- Sample production requests across common tasks and separately inspect riskier or low-volume cases. Compare like with like across weeks and record the sample size. A shift in what people ask can change the average score even when the system stays the same.
- Use a large language model (LLM) as a judge when you need to score many answers against a written rubric. For a groundedness check, give the judge the answer and the exact passages retrieved. Ask which factual claims lack support. A grounded answer can still be wrong if the supplied passage is outdated.
- Have a person review a sample of passes and failures, especially where a wrong answer has consequences. Research on model judges found that answer position and verbosity can bias scores. Use human labels to check for disagreement before relying on the judge’s score to make a release decision.
Before changing a model, prompt or document set, run the same cases on the current and candidate versions. Keep the scoring rubric and judge version fixed. Compare results by task so a gain on easy questions cannot hide a drop on sensitive ones. For a knowledge assistant, check whether a failed answer followed an AI hallucination or a retrieval failure. Fix the failing step, keep the case in the evaluation set and watch the same task after rollout.
AI Observability Tools
Choose an AI observability tool according to where the system runs, who will review its traces and where those traces may be stored.
| Tool category | What the tools do | When to use it |
|---|---|---|
| Tools built for language models | Langfuse and Arize Phoenix combine tracing and evaluation with self-hosting options. LangSmith combines tracing and evaluation and has an enterprise self-hosting add-on. Helicone has request logging and cost tracking, with a self-hosting option. | Use one when your team spends much of its time inspecting model runs and comparing evaluation results. Where traces must stay in your environment, budget for operating the storage, upgrades and access controls. |
| Cloud-native observability | Microsoft Foundry (previously Azure AI Foundry) uses Application Insights for tracing. Amazon Bedrock AgentCore sends telemetry to CloudWatch. In Google Cloud, Gemini Enterprise Agent Platform now includes Vertex AI and has agent tracing and evaluation. | Start here if you already use the provider’s managed AI services and your team manages cloud permissions and monitoring there. |
| General observability platforms | Datadog Agent Observability lets teams inspect model traces and evaluation results alongside operational metrics. Grafana Cloud supports agent tracing through OpenTelemetry. You can also send traces to a self-managed Grafana Tempo instance. | Use your existing stack if the on-call team needs to follow a request from the application through the AI calls and into a tool or backend service. |
Trial your preferred option with a redacted trace and a scored answer from your own test environment. Check that you can see the slowest step, attribute model cost to the request and find the evaluation result from the same trace. If you run evaluations against another model, check where the evaluator receives and stores that data as well.
Privacy and Retention for AI Traces
Treat AI traces as sensitive records. A prompt can contain a person’s details, a retrieved passage can expose a confidential document and an answer can contain personal information inferred by the model. The Office of the Australian Information Commissioner’s AI privacy guidance explains that privacy obligations apply to personal information in both AI inputs and outputs. Generating or inferring personal information can itself count as collection.
Record operational metadata by default. Redact sensitive content before your system exports it and give raw trace access only to the roles that need it. Set a short retention period for detailed traces and keep aggregate metrics longer where they contain no personal information. Map where trace storage, exports and backups sit and where vendor support staff can access them.
For organisations covered by the Privacy Act 1988, Australian Privacy Principle 11 requires reasonable steps to protect personal information. Once you no longer need it for a permitted purpose, you generally must take reasonable steps to destroy or de-identify it. Check any statutory retention requirement and assess Australian Privacy Principle 8 if a trace provider or support arrangement involves disclosure overseas.
In its voluntary Guidance for AI Adoption, the National AI Centre asks organisations to “Establish monitoring systems for each AI system to track key performance metrics and indicators relevant to the identified risks.” Choose metrics and trace fields around those risks so the review has the evidence it needs.
Running Observability as Part of Operations
Give the on-call engineer alerts that require immediate action and give the system owner a weekly review with a subject matter expert. Base alert thresholds on the system’s budget, normal traffic and the harm a failure can cause. Record who acts when a threshold is crossed.
| Alert | Example threshold for one assistant | First check |
|---|---|---|
| Cost spike | Estimated cost per completed request exceeds 150% of the prior week’s baseline for an hour, with at least 100 requests. | Break the change down by model, input length and retry count. |
| Failure rate | Tool calls fail on more than 2% of requests that attempted a tool call in 30 minutes, with at least 100 such requests. | Group failures by tool and inspect the first failing span. |
| Quality drop | The grounded answer rate falls five percentage points below baseline on a comparable sample of at least 100 answers. | Have a reviewer confirm the drop and check which tasks account for it. |
These are example thresholds. Set separate immediate escalation for a confirmed privacy incident or severe unsafe action, even if there is only one case. Record policy blocks separately so the team can check whether AI guardrails are correctly stopping requests. Share cost trends with whoever owns AI spend management across teams.
In a weekly review of a hypothetical staff policy assistant, a policy specialist finds that several answers about leave cite a superseded policy. The engineer checks the retrieved document IDs and finds that an archived copy is still in the search index. They remove it from search, rerun the affected questions and inspect a fresh sample after release. If the right document was present but ignored, the fix might belong in the prompt. If a document lookup failed, it belongs in the tool or its integration.
Log the incident, the version changed, the owner and the follow-up result in the system’s AI register or link the incident record from there. Include repeated failures, unresolved risks and trends against thresholds in governance reporting. Before launch, name the person who receives each alert and book the first review of real requests.
Related reading
AI Hallucination: Causes, Examples and Fixes
Why does AI invent facts, citations and figures with confidence? What AI hallucination is, from fake case law to AI scribe errors, and how to reduce it.
What Are AI Guardrails? Types and Examples
AI guardrails limit what an assistant can say, reveal and do. The main types, worked examples, the tools that apply them and where they fail are all here.
AI Spend Management: How to Control AI Costs
When AI costs sit across seats, API keys and expense claims, no one sees the total. Find every cost, set budgets and caps and route work to cheaper models.
How to Build and Maintain an AI Register
Can you list every AI tool in your organisation, with its owner and risk rating? An AI register does that, and it only takes a few fields to keep current.
embeddings
Embeddings is an Australian AI consultancy. We design, build and run AI systems inside the software, documents and data organisations already use, from offices in Perth and Melbourne.
About Embeddings