Strategy & Transformation
How to Calculate ROI for AI and Software Modernization
A practical, finance-ready framework for comparing AI and modernization investment with the current-state cost, realistic benefits, delivery risk and time to value.
operationalwrocław--:-- cet
∕ insights / llm-observability.md
LLM Observability
LLM observability explained: trace requests, track quality, latency and cost, and set alerts that protect your product and budget in production.
>_article.meta

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.
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.

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.
If the team can't answer those three, the green dashboard is decoration.
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 |
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.
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.

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.
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.
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.
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.
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.
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.
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 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.
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.
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.
Strategy & Transformation
A practical, finance-ready framework for comparing AI and modernization investment with the current-state cost, realistic benefits, delivery risk and time to value.
Technology Talent & Teams
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.
AI Consulting & Automation
A practical framework for choosing and deploying transport or logistics AI agents around real exceptions, reliable data and controlled operational authority.
More guidance: all insights articles
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.