Skip to content

operationalwrocław--:-- cet

RITE NRG

∕ insights / llm-observability.md

LLM Observability

LLM Observability: What to Measure and Why It Matters

LLM observability explained: trace requests, track quality, latency and cost, and set alerts that protect your product and budget in production.

>_article.meta

published
2026-12-01
reading_time
16 min read
topics
LLM observability, AI monitoring, LLM tracing, GenAI evaluation, LLM cost monitoring

#01/article

LLM Observability: What to Measure and Why It Matters

Your support bot answered a full week of conversations without a single visible failure. Latency averaged 900 milliseconds, the error rate stayed flat at zero, and every panel on the dashboard glowed green. Meanwhile a customer sent a screenshot of that same bot confidently quoting a refund window that closed in March.

Nothing in the monitoring stack was wrong. It just never looked at the answer.

That blind spot costs money in three directions at once. Support agents absorb tickets nobody forecast, customers lose trust in answers that read perfectly and happen to be false, and finance asks why the model bill climbed while complaints rose with it. LLM observability is the practice that closes the gap. It connects the technical telemetry you already collect, requests, tokens, latency, errors, to signals about what the model said, whether it was correct, and what that answer cost.

Why Green Dashboards Still Hide Broken AI Answers

A dashboard is a promise that someone is watching the right thing. Most LLM dashboards watch the plumbing. They know a request arrived, a provider responded quickly, and a known quantity of tokens went out. They have no opinion on whether the answer was true.

Down the corridor, a product team is reviewing a green board and concluding the feature is healthy. It's the wrong conclusion drawn from correct data.

A diverse team of professionals looking intently at a laptop displaying a green product health dashboard.

The practical rule: uptime monitoring tells you the engine is running. Observability tells you whether the car reached the right address, how much fuel it burned on the way, and which passenger got out angry.

The answer layer needs its own measurement, and it needs more than one number. A 2025 peer-reviewed clinical study on hallucination and omission rates makes the case better than any vendor slide. Researchers evaluated 18 experimental configurations against 12,999 clinician-annotated sentences drawn from 450 clinical notes. They recorded hallucinations in 191 sentences, a 1.47% hallucination rate, and omissions in 3.45% of sentences. Of the hallucinated sentences, 84, or 44%, were classified as major errors capable of affecting diagnosis or patient management if left uncorrected.

Sit with that split. The headline error rate looks tiny. The severity distribution is what would keep a medical director awake.

Your workflows rarely carry that level of consequence, but the pattern repeats everywhere money or compliance is involved. A refund policy quoted a month out of date, a shipping estimate that ignores customs, a contract clause invented to fill a gap. Each one is a small percentage and a large incident. That's why a single accuracy score cannot govern an LLM feature. Hallucination, omission, severity and business context need separate measurement tracks, and they need to be read as trends rather than snapshots.

Every LLM feature in production should be able to answer three questions without anyone opening a notebook.

  • What does a good answer look like? Written down, with examples, before launch.
  • Who checks it, and how often? A named person and a review cadence, not a shared mailbox.
  • What does each answer cost? Per request, per feature, per tenant.

If the team can't answer those three, the green dashboard is decoration.

The Core Signals to Track in Production

A support bot can report nearly every call as successful and still quote a refund rule that expired last month. The request completed. The answer did not. Treat answer quality as a production signal with a named owner, read alongside latency and spend. A wrong answer is cost, risk, and an accountability gap, not a score you checked once before launch.

Eight signals cover most of what a team needs in its first month live. Copy the table into your dashboard spec, then delete any row you can't turn into an alert with an owner.

Signal What it tells you Example metric Typical alert trigger
Error and timeout rate Provider or infrastructure failures Failed and timed-out calls per 100 requests Sustained rise above your baseline
Latency User-visible speed, including failed and retried calls p50, p95 and slow-tail response time p95 breaches your agreed response target
Token usage Size of prompts and answers Input and output tokens per request Sudden jump after a prompt change
Cost Spend per feature, tenant or model Cost per request, per feature and per resolved task Daily spend above budget threshold
Groundedness Whether answers stay within retrieved sources Share of answers supported by retrieved context Drop below the agreed quality floor
Factual error rate Wrong statements found in sampled reviews Errors per 100 sampled answers Any rise in a high-risk workflow
Refusal rate Answers declined when they should help Refusals per 100 requests Rise after a model or policy change
Escalation rate How often humans take over Handoffs per 100 conversations Week-over-week rise

Percentiles Over Averages

Averages hide the failures that matter. A mean latency that looks fine can coexist with a p95 that makes users give up, and the users waiting that long are the ones who stop coming back. Track p50 and p95 together, and watch the tail where retries and timeouts pile up.

Record the model and provider identity, input and output token counts, and a duration histogram that includes failed calls as well as successful ones. Timeouts and provider errors show up twice: as slower answers for the user, and as extra spend when retries fire. Tag each model invocation with model version and environment so a regression points at a release and a person, not a vague "the model got worse."

Two signals get skipped most often. Refusal rate catches a model that turned cautious after an upgrade and now declines legitimate questions. Escalation rate is the honest one, because it measures how often a human had to rescue the answer. Neither appears in a default APM template, and both change decisions. Name one owner for groundedness, factual error, refusal, and escalation. That person reviews samples on a fixed cadence and calls whether a rise is a model change, bad source data, or a cost trade-off you are willing to keep.

Where to start: reliability and cost on day one, sampled quality checks within the first month, threshold review every month after that. Alerts that never fire teach your team to ignore alerts.

Thresholds drift as traffic grows. A p95 target set at launch looks generous at early volume and tight once traffic multiplies. Review the numbers monthly and retire any alert that hasn't fired in a quarter, or it will bury the one that matters.

The alerting habits worth stealing come from ordinary platform work. Improving system reliability covers the escalation discipline that transfers directly to model-backed features. Quality signals are also only as good as the data underneath them, and Visbanking's guide to data observability is a solid primer on tracing, lineage and trust in the pipeline that feeds your retrieval layer.

How a Request Trace Shows Where Failures Start

A trace is the difference between knowing something broke and knowing why. Follow one message from a user through every layer that touched it.

The CNCF's summary of OpenTelemetry's generative-AI conventions frames the three primary signals as traces, metrics and events, and notes that a span can capture parameters such as temperature and top_p alongside token counts and errors. Use that structure.

A five-step infographic showing how request tracing identifies the source of failures in an LLM pipeline.

Read One Request End to End

  1. Attach a correlation ID when the user sends the message, so every later step links back to that single ID.
  2. Record the retrieval span with document identifiers, relevance scores and how long the search took.
  3. Log the prompt template version and which fragments were assembled into the final prompt.
  4. Capture the model span with provider, model version, temperature, top_p, input and output tokens, duration, and any retries or timeouts.
  5. Add tool-call spans with arguments, outcome and error codes.
  6. Attach evaluator results, such as a groundedness score, to the same trace rather than a separate system.
  7. Log the final answer and total latency.

Say a support bot quotes an outdated policy. The trace shows the retrieval span returning a document dated last year, while the prompt version and model version stayed unchanged all week. That single view moves the fix to the index and the document lifecycle. Without it, the team spends two weeks swapping models, ships the same wrong answer, and burns budget doing it.

That's not a hypothetical weakness in tooling. Research on LLM root-cause analysis treats irrelevant retrieval, incorrect knowledge and hallucination as distinct fault classes, and localizes them with distributed traces and causal relationships rather than isolated application logs.

Store full prompts, completions and tool payloads only under explicit privacy controls. Redact personal and confidential data, restrict who can open stored content, and sample high-volume content events while keeping aggregate metrics at full coverage. Debugging value comes from the shape of the trace, not from keeping every raw document forever.

Here's the walkthrough of the same idea in a live environment.

If a trace can't tell you which layer failed, add the missing span before you add another dashboard.

Measuring Quality When Automated Scores Disagree

Your evaluator scores answers 4.5 out of 5. Your support agents flag several a day as wrong. Both groups are reporting what they see, and the gap between them is the most expensive data your system produces.

Automated judges are fast and cheap and they drift. A model-based evaluator can reward confident tone, punish correct brevity, or inherit the blind spots of the model that wrote the answer. Treat its score as a sensor to calibrate, not a verdict.

NIST's Generative AI Risk Management Profile points in the same direction. It recommends assessing accuracy, quality, reliability and authenticity of generated output by comparing it with known ground-truth data and using multiple evaluation methods, including human oversight and automated evaluation. It also calls for periodic privacy monitoring, regular safety evaluation, and real-time monitoring of performance that can trigger alerts for human intervention.

Calibrate the Judge Before You Trust It

Build the evaluation set from real user questions with verified answers, not from prompts your team wrote on a Friday. The structure matters as much as the content, and this LLM evaluation framework sets out how to build one that survives model and prompt changes. Refresh it after every prompt, model, retrieval or code change, because yesterday's passing suite says nothing about today's chain.

Then layer the methods. Automated evaluators give you coverage across thousands of traces. Sampled human review gives you calibration. Task success, escalation rate and resolution time give you business reality. Keep hallucination, omission and severity as separate measures so a rise in harmless refusals never masks a fall in correctness.

The disagreement rule: if automated and human scores diverge across two consecutive review cycles, pause that evaluator, recalibrate it, and route flagged answers in high-risk workflows to a named owner. Don't average the two and move on.

The cost comparison is rarely close. A few hours of weekly human review is cheaper than one undetected failure that reaches a customer, a regulator or a contract negotiation. Teams skip the review because it feels unscalable, then pay more later to reconstruct what went wrong.

Data reality comes first. No evaluator can judge answers built on documents nobody trusts, which is why access, quality and ownership get settled up front in AI work rather than after the first incident.

Test Beyond English

A 2025 study of hallucination rates across languages assembled 51,133 prompts across 30 languages and evaluated six LLM families, reporting average hallucination rates between 7% and 12% depending on language. Broader language coverage was associated with higher hallucination rates, and scale didn't remove the gap.

If you sell in more than one market, segment your evaluation set by language and tenant, then read quality per segment before you trust a global average.

Keeping Cost and Usage Under Control

A modest pilot bill turns into a line item your CFO notices, and the cause is rarely dramatic. One team started attaching a 40-page PDF to every request, and the per-request cost multiplied while the request volume stayed flat.

Cost control is a design discipline with five parts.

  1. Tag every request with user, tenant, workflow, model and environment, so every dollar has an owner who can be asked about it.
  2. Set daily token budgets per user and per tenant, with a soft warning that fires before the hard stop.
  3. Alert on anomalies, such as a day's spend running at double the seven-day average, and route it to the person who owns that workflow.
  4. Rate-limit suspicious or looping sessions and review them before blocking anyone. A retry storm and an abusive script look identical from the billing page.
  5. Route simple tasks to a smaller, cheaper model and track whether quality holds on your evaluation set before you commit.

Cost per request misleads. A cheap answer that triggers three follow-up questions and a human handoff is the most expensive answer of the day. Measure cost per successful resolution instead, and put it next to escalation rate on the same screen.

There's a security angle too. The OWASP Top 10 for LLM Applications 2025 expands denial of service into Unbounded Consumption, covering resource-management failures and unexpected costs in large-scale deployments, and recommends logging, monitoring, anomaly detection and rate limiting. Usage limits protect availability, not just the budget.

A system that produces correct answers while permitting runaway usage isn't production software. It's an experiment with a credit card.

For the deeper playbook on routing, caching and prompt trimming, LLM cost optimization covers the levers that move the number most. Once budgets and alerts exist, finance and engineering can agree a ceiling before growth forces a crisis conversation.

Triage Model Problems Versus Software Problems

The incident channel lights up. Four people have four theories, and nobody can say whether this is a model problem or a software problem. That ambiguity burns more time than the bug, and the wrong first move either rolls back a healthy release or leaves a bad model serving traffic.

Symptom Likely layer First check
Answers ignore retrieved documents Retrieval or prompt Retrieval hit rate and prompt template version
Confident wrong facts after a model switch Model Compare evaluation set scores for the old and new model
Sudden latency spike Provider or infrastructure Provider error codes and timeout events
Tool calls fail or return partial data Tool integration Tool span errors and payload schema
Costs jump with the same traffic Prompt or orchestration Token counts per request by prompt version
Quality drops in one language or tenant Data or segment Quality dashboard filtered by language and tenant

The Three-Step Triage Order

  1. Open the trace for an affected request and confirm which span changed.
  2. Reproduce the failure against the evaluation set using the previous prompt, model or index version, so you know the change caused it rather than coincided with it.
  3. Roll back the most recent change touching the failing layer, then confirm recovery on the same dashboard that flagged it.

The rollback path has to exist before the incident. Every change must pass architecture review by a named architect, automated tests, a security review, observability, and a documented runbook and decision record. Skip that, and the outage is when the team learns nobody can name the version that was live on Tuesday.

The quick test: if latency and error codes move first, look at providers and infrastructure. If latency is normal and answers drift, look at prompts, retrieval and model versions.

That split is what keeps an incident review short. LLM observability is still early for many organizations: teams investigate it, or run a proof of concept, long before it is the production control that names an owner for answer quality. Without that owner, cost, risk and the follow-up all sit in the channel until someone guesses.

Close every incident with a decision record: which layer failed, which evidence proved it, what changed, and who owns the follow-up. Six months later, that record is the fastest onboarding document the team has.

Set Up LLM Observability Before Your Next Release

A week of instrumentation is enough to know more about your LLM features than a quarter of guessing. You don't need a platform decision to start. You need one owner, one evaluation set and a clear order of work.

  1. Name one accountable owner for LLM quality, cost and incidents, with a named architect for the design. Two owners means no owner: when a bad answer ships, everyone assumes the other person is watching it.
  2. List every LLM feature in production and write acceptance criteria for each: what a good answer looks like, the maximum acceptable latency, and the monthly budget. A feature without a written budget is a feature that gets investigated only after the invoice arrives.
  3. Add correlation IDs and spans for retrieval, model calls and tools, using the signal table as your checklist.
  4. Build an evaluation set from real questions, and agree who reviews a sample every week. The reviewer matters more than the tooling: a weekly score nobody reads is decoration.
  5. Set alert thresholds on your top signals and rehearse one incident using the triage table before a real one finds you.
  6. Schedule a monthly threshold review so alerts stay honest as traffic and models change. Thresholds tuned for launch traffic go silent or noisy within a few months if nobody revisits them.

Why move now rather than next quarter? Running LLM features in production often comes with dashboards but no real evaluation practice, which means you can see that something responded without knowing whether it responded well. Adoption of dashboards isn't adoption of quality control, and the gap between the two is exactly where bad answers live.

If the team lacks capacity, a short technical and operational assessment reviews architecture, dependencies, security position, observability and operational risk, then agrees what must be corrected first. From there, a managed service begins with a responsibility map, a transition plan, SLAs and escalation, and an improvement roadmap, in that order. RITE NRG works this way with clients building AI-native products, with named accountable people for architecture, engineering and delivery, so ask for the assessment first and agree the top corrections before anything else gets built.

The single action for this week is simple. Pick one production LLM feature, open a trace for yesterday's worst answer, and find out which layer failed. Everything else follows from what you see.


If you're running LLM features in production and can't yet say which layer produced last week's worst answer, Rite NRG can review your architecture, dependencies, observability and operational risk, then agree the corrections worth doing first. We build the tracing, evaluation and cost guardrails into the delivery, with named owners for architecture and engineering, so quality has someone accountable behind it. Visit Rite NRG to start with an assessment.

/ about the author

Written by the RITE NRG editorial team — the architects, engineers and delivery leads who build and operate AI-era software for our clients.

Technology Talent & Teams

IT Partnership Models: How to Choose the Right One

A decision-maker's guide to IT partnership models: what each model actually transfers to the partner, what it costs beyond the rate card, and how to match the model to your situation.

More guidance: all insights articles

Get a Free 30-Minute Scoping Call

Tell us about the system or idea behind this article. We tell you honestly if it is a fit — and what a fixed-scope delivery could look like.