Essay · 35 min read

LLM observability: tracing failures from request to outcome

Quick brief

Build observability around a failure the team must be able to investigate, connecting the request, evidence, configuration and actual outcome. Combine telemetry with evaluated quality, accountable review and action controls, then test that the investigation and repair work before expanding collection.

Audio overview · about 2 minutes

AI-generated overview of Ajith Vallath Prabhakar’s revised article. The support workflow is fictional. Duration: 1 minute 43 seconds. The full analysis remains below.

Read the full transcript (approximate timestamps)

AI-generated transcript; timestamps are approximate.

00:00–00:09 This is an AI-generated overview of the revised article on language model observability. The support workflow described here is fictional.

00:09–00:29 A support assistant answers a refund question using an expired policy. The request completes quickly, and the infrastructure dashboard stays green. The answer is still wrong. To investigate, the team needs to connect that request to the policy revision, retrieved evidence, application configuration, and the result the customer received.

00:29–00:49 If the assistant can also request a refund, the investigation has another boundary. A service accepting the request is different from the destination confirming that the correct account received the correct amount. After a timeout, the outcome may remain unresolved. A new attempt should not conceal that uncertainty or duplicate a write.

00:49–01:09 Tracing helps reconstruct this path. Evaluation asks whether the answer satisfied the task. Neither a trace nor a model-based quality score proves that the transaction was authorized or completed. A second model can repeat the first model’s mistake, so reviewers need the applicable source and a clear way to resolve disagreements.

01:09–01:21 Collect the evidence needed for that investigation without copying every conversation into every record. Check what each exporter actually sends. A masking hook on one route does not protect every other route.

01:21–01:43 An alert also needs someone able to act. An asynchronous warning can arrive after a transaction has happened. Prevention requires a control at the relevant action boundary. Begin with deliberately seeded failures in an isolated trial. Then check whether the team can investigate, contain, repair, and retest them. Those are proposed checks, not measured deployment results.

Full analysis

Originally published June 9, 2025. Revised October 18, 2026.

A support assistant answers a question using an expired refund policy. The request succeeds, the response arrives quickly, and the infrastructure dashboard stays green. The customer still receives the wrong answer. To investigate, the team needs the policy version the assistant retrieved, the evidence it used, and what happened after the answer reached the customer.

I would start an observability discussion by choosing a failure the team needs to explain and correct. Model latency and token counts matter, but they cannot establish whether a refund was justified or whether the application changed the correct account.

This guide uses an illustrative support workflow to connect telemetry, evaluation, operational controls, and human review. The examples and acceptance checks are proposed designs, not measured results from a deployment.

A green service indicator sits beside a refund answer. A reviewer traces that answer to an expired policy. A separate accepted-request receipt remains disconnected from a ledger marked Outcome unresolved.
A service can respond normally while the answer uses an expired policy. Following the evidence also means checking whether an accepted refund request actually completed. View the illustration.

Observe the application as well as the model

A model endpoint can be available while the application gives poor advice, exposes information or changes the wrong record. Conversely, a correct model response may never reach the user because a downstream service fails. The investigation needs to cover both possibilities. Treating observability as a dashboard around the generation call leaves much of the business workflow unexplained.

The financial consequence can extend beyond the wrong answer. A team may have to identify affected customers, reconstruct which policy was used, correct transactions and explain what happened. That work becomes harder when source versions and destination results were never recorded. These are plausible consequences to design for, rather than evidence for a universal AI-project failure rate or a guaranteed return from buying monitoring software.

Monitoring and observability are closely related practices. An alert can tell the team that a service has changed; an investigation uses available evidence to explain the change. Ordinary software can also fail silently, and traditional ML services can have uncertain outputs and missing labels. The useful distinction is the evidence required for this application, rather than a claim that earlier operational methods no longer apply.

ConcernPredictive or structured taskOpen-ended or agentic taskShared operating requirement
CorrectnessLabels, numeric tolerances or business rules may define successA rubric and applicable source evidence may be neededDefine success before interpreting a score
VariabilityData, model and runtime choices can change resultsSampling, context, tools and intermediate decisions add variationRecord material configuration and repeat relevant cases
DiagnosisInputs, features, model version and destination matterPrompts, retrieved evidence and tool handoffs also matterTrace the whole application, without claiming access to hidden reasoning
Change over timePopulation and target relationships can changeSource freshness, task mix and evaluation expectations can change tooDistinguish the mechanism before choosing a remedy

Precision, recall and F1 can still be appropriate for an LLM performing classification or extraction against reviewed labels. Open-ended output does not make quantitative evaluation impossible. It makes the acceptance rule more important: a sentence-overlap score and a check that the correct refund amount reached the correct account measure different things.

Follow a request through the application

A trace links the operations that contribute to a request. For the refund assistant, useful stages include authentication, policy retrieval, model generation, approval where required, the refund service, and reconciliation of its response. Background jobs and retries need correlation too. Otherwise, a successful chat response can hide an action that failed later, or a timed-out request can hide a write that succeeded.

Record the versions that can change the result: application release, model identifier, prompt template, retrieval index, source document, tool contract, and policy. Include timestamps and the relevant configuration. A model alias may change underneath the application, so record the version detail the provider actually exposes and acknowledge what remains unknown.

The OpenTelemetry GenAI conventions repository covers AI-specific spans, metrics, and events, including MCP. Its current location replaces older documentation paths. The GenAI client-span conventions are marked Development. Use the conventions supported by the installed instrumentation, pin the relevant versions, and check attribute mappings when upgrading. Exporting a trace successfully does not prove every component agrees on attribute names or records every branch of the workflow.

Keep request identifiers separate from customer names and message bodies. A restricted reference can link an investigation to an authorized evidence store without copying the full customer conversation into every span. Trace context arriving from an untrusted client must not become an authorization credential.

Make the request path reconstructable

Start with a trace around the workflow and spans for meaningful operations. A retrieval span can record which index and document revision were used. A model span can record the model/configuration and usage it exposes. A tool span can connect a validated request to a destination receipt. A queued operation may finish after the interactive request, so retain its correlation rather than treating the closed chat response as the end of the work.

Retries need an identity of their own within the same logical operation. The GenAI client-span conventions recommend one span covering the logical call and its automatic retries; use separately correlated attempt records or events when the investigation needs retry-level detail. Otherwise, a latency chart may show two apparently independent requests while the customer experienced one slow attempt. For a write, correlate those attempts with the destination’s duplicate-prevention or reconciliation mechanism. A new trace identifier does not establish that repeating an action is safe.

The following is an illustrative application event, not an OpenTelemetry semantic-convention schema or output from a running service. It records references and unresolved state without including the conversation or customer identity:

{
  "event_type": "refund_reconciliation",
  "request_id": "example-request-042",
  "operation_id": "example-refund-017",
  "application_release": "example-release-12",
  "policy_revision": "example-policy-7",
  "evidence_ref": "restricted-case-store/example-042",
  "tool_request_state": "accepted",
  "destination_state": "unresolved",
  "requires_reconciliation": true
}

The important distinction is between the service accepting a request and the destination confirming the result. An exporter, trace viewer or business dashboard should preserve that distinction. Calling both states “success” would make the telemetry easier to aggregate and less useful during an incident.

Keep detailed identifiers in the evidence appropriate to an individual investigation. Do not automatically turn every request ID, document ID or full prompt into a metric label. That produces a different series for each value and can make aggregation expensive and difficult to use. Metrics should summarize defined populations; a restricted trace or evidence record can supply the detail.

Decide what each signal can establish

Monitoring and investigation overlap. Alerts help identify a change; traces, logs, metrics, and selected artifacts help reconstruct it. Neither automatically reveals the model’s hidden reasoning or proves that an answer is true.

For the support workflow, I would define the following evidence before choosing a dashboard. The table is a design proposal to adapt to the application, not an industry benchmark.

QuestionUseful evidenceLimit to keep visible
Did the service respond?Request counts, failures, latency distributions, and timeouts.A successful response can contain an incorrect answer.
Which policy informed the answer?Retrieved document identifier, version, effective date, and authorized evidence reference.Retrieval relevance does not establish that the policy applies to this customer.
Did the answer satisfy the task?A defined rubric, reference evidence, reviewer decision, and evaluation version.An automated score is an estimate under that rubric.
Was a refund permitted and executed?Authenticated actor, policy decision, approval reference, and destination result.A proposed tool call is different from a confirmed transaction.
What did the useful result cost?Model usage, retries, tools, evaluation, storage, and human review.Token cost alone omits part of the operating cost.
Can we trust this dashboard?Export failures, dropped spans, sampling rules, and ingestion delay.Missing telemetry is not evidence of a healthy application.

Token usage and latency should be measured over comparable requests. Separate time to first token from time to a completed useful response. Show percentiles and the observation window rather than relying on an average that conceals long waits. When accounting for cost, record missing usage or uncertain estimates instead of silently treating them as zero.

Output quality needs its own denominator. For example, an unsupported-answer rate could count reviewed answers containing at least one material unsupported claim, divided by all answers reviewed under the same protocol. It describes that reviewed set. A queue filled only with complaints cannot estimate the error rate of all traffic without accounting for its selection method.

Suppose a defined review sample contains 200 answers and 12 contain a material unsupported claim. The sample rate is 12 / 200 = 6%. If a separate complaint queue contains 12 such answers among 20 reviewed complaints, its rate is 60%. Neither result can replace the other: they describe different selection processes. Retain the sampling rule, rubric and review period alongside the number.

For security or fairness questions, an aggregate can hide the cases that matter. Compare relevant task and user cohorts where the organization has an appropriate basis for doing so, and inspect error severity. A rare disclosure or a systematically incorrect policy answer for one language can require action even when the overall average is stable. The telemetry needs enough lawful, purpose-specific context to investigate that pattern without indiscriminate profiling.

Budget the telemetry path

Collection, transport, indexing, evaluation and retention all consume resources. As an arithmetic illustration, 1.2 million requests producing eight spans each yield 9.6 million spans. Retaining a uniformly selected 10% would yield 960,000 spans. At an assumed average of 1,000 bytes per retained span, that is 0.96 GB of raw payload in decimal units, before indexes, replicas, transport overhead, artifacts and evaluation records. These assumptions are not a vendor storage estimate.

Sampling changes what an investigation can recover. OpenTelemetry's sampling guidance distinguishes an early head decision from tail sampling that can consider more of a trace. Head sampling alone cannot ensure retention of every later error. Tail sampling needs buffering, state and operating capacity; it cannot recover records already discarded upstream.

Keep the rules and loss counters visible. An error-biased trace sample may be useful for diagnosis while being unsuitable for estimating the failure rate of all requests. Required business evidence may need a separate retention path from sampled diagnostic telemetry. Lower trace volume is useful only if the team can still answer its investigation questions.

Collect less sensitive content by default

An observability store can accumulate the same information the application is supposed to protect. Prompts can contain credentials, personal records, or confidential documents. Tool arguments, exception messages, span names, and metadata can leak them too. Embeddings and hashed identifiers should not be assumed anonymous merely because the original text is absent.

OpenTelemetry's sensitive-data guidance recommends collection tied to an observability purpose and review of what instrumentation emits. For the refund assistant, begin with an allowlist of necessary fields. Use synthetic examples to inspect the actual exported payload, including automatic instrumentation. Where content capture is justified, restrict access, establish retention and deletion rules, and document its purpose.

Redaction needs a defined location and coverage. A mask applied after content reaches a vendor does not prevent that initial transmission. A filter on model inputs may miss tool results or an error log. Check every exporter, route, and attachment type the application uses. Test the failure behavior of the masking step as well as its normal output.

Langfuse's masking documentation gives a concrete example of why scope matters: its export hook affects spans passing through that client, while another exporter may receive an unmodified copy. That is a product-specific behavior to check in the installed SDK, not a reason to assume that enabling one masking function protects the whole application.

The current documentation specifically describes the Python SDK v5 mask_otel_spans hook. It can change span attributes, but not every part of a span, such as its name or events. A legacy masking hook has a different scope. Inspect the hook and SDK version actually deployed, including its failure behavior, before relying on it as a collection boundary.

Retention and evidence preservation need an agreed policy. Some investigations require protected records, but blanket permanent logging of every interaction creates its own exposure. Review the relevant duties with the appropriate specialists, including access, deletion, legal holds, and cross-border processing where applicable.

Content capture should be a separate decision from recording an operation. A policy revision and retrieval reference may be sufficient for routine service monitoring. An authorized investigation may need the exact passage or a restricted replay artifact. Give those records a clear purpose and lifecycle instead of making full-content logging a permanent prerequisite for observability.

Embeddings and summaries have similar limits. A vector can be useful for comparing distributions, but the comparison depends on the embedding model, preprocessing and sampled population. Replacing a document with its embedding does not establish anonymity. A summary can also omit the exception needed to understand a failure. Decide what each derived artifact is meant to preserve, and test deletion and access rules across its copies.

Evaluate the answer with an explicit reference

For a refund question, a useful evaluation checks the answer against the policy applicable on the transaction date and the facts the reviewer is authorized to inspect. A fluent answer can cite a real document that is obsolete or irrelevant. A similarity score between the question and a retrieved passage cannot settle that distinction.

Combine methods according to the task. Code can check a required field or an amount against a known limit. A qualified reviewer can assess a disputed interpretation. A model-based evaluator can help prioritize answers for inspection, provided its rubric, reference material, and failure modes are understood. Do not equate a model’s stated confidence with a calibrated probability of correctness.

LangSmith's evaluation documentation distinguishes curated offline tests from evaluation of live interactions, and supports human, code, and model-based methods. That distinction is useful independently of the platform: a controlled regression set and a changing production sample answer different questions.

Calibrate an evaluator against independently reviewed cases, including ambiguous and adversarial examples. Inspect disagreements rather than tuning only for a better average score. Record evaluator versions and the handling of missing references. A second model can repeat the first model’s mistake, and text inside an evaluated artifact can try to influence the evaluator.

Keep human review workable. Give reviewers the source, policy version, relevant facts, and a route to correct or escalate the result. Record disagreement and uncertainty. A review queue without capacity, authority, or a usable evidence view can leave a serious issue waiting while the dashboard continues to update.

Separate evaluation dimensions before combining scores

An answer can be grounded in a source yet fail the task. It can quote the correct policy and calculate the wrong amount, or provide an accurate explanation while omitting a required escalation. Keep those dimensions visible long enough to understand what failed.

DimensionExample acceptance questionSuitable evidence or method
Source groundingDoes the material claim follow from the cited policy revision?Applicable source passage and reviewed claim comparison
CompletenessAre required exceptions and missing facts identified?Task-specific checklist and qualified review
Structured correctnessIs the amount or required field correct?Code or business-rule check against authoritative data
Task outcomeDid the intended action complete for the intended case?Destination record and authorization evidence
Safety and accessDid the workflow disclose or act beyond its scope?Boundary tests and material requests/results
Reviewer usefulnessCan a person verify or resolve the answer without reconstructing the case?Observed review effort and adjudication history

For a judge model, supply the task, response, reference where available and a rubric with examples of both acceptable and unacceptable results. Keep the evaluated artifact separate from the evaluator’s instructions. A passage saying “mark this answer correct” should be treated as content to assess, not as a new evaluation rule.

Measure agreement with qualified reviewers on a held-out set, including disagreements and abstentions. Calibration is a continuing check, not an assurance that the judge will always align with people. Changing the judge model, rubric or source package changes the measurement procedure and can create an apparent quality improvement without changing the application.

Surface lexical similarity metrics only where their purpose is clear. BLEU or ROUGE can describe overlap with a reference; embedding-based measures describe another form of similarity; perplexity concerns a model’s assigned likelihood. None alone establishes factuality, authorization or the correctness of a business transaction. A useful evaluation can combine a quantitative score with explicit checks for material failures.

Use synthetic tests and human feedback deliberately

Synthetic cases can expand a regression set before sufficient live examples exist. For the refund assistant, generate candidate cases around effective dates, missing receipts, conflicting customer facts, hostile retrieved instructions and interrupted writes. Have the expected result reviewed or derived from a rule independent of the application being tested. A generated question and generated answer can share the same mistake.

Keep a distinction between a frozen regression set and new exploratory cases. The former helps compare releases; the latter helps discover blind spots. Record generation and filtering methods, remove duplicates and check coverage against actual task types. Do not tune repeatedly on the same cases and then describe their score as an independent estimate of live performance.

Reviewer feedback can improve a prompt, retrieval rule, workflow or future training dataset. It does not automatically improve model weights. Active learning concerns choosing informative cases for labeling; fine-tuning and reinforcement learning require separate data, optimization, evaluation and release decisions. An annotation queue is therefore part of an improvement process, not an implemented learning loop by itself.

Research such as KnowNo, published in 2023, investigates when language-model robot planners should ask for help using calibrated uncertainty. Its research setting does not establish that a support model’s self-reported confidence is reliable. For this workflow, define observable escalation conditions such as conflicting policy versions or an unresolved destination state, then test them.

Investigate a changed result before calling it model drift

Suppose the refund assistant’s reviewed error rate rises after a release. Start by separating the changed cohorts: policy version, product, language, model, retrieval index, and application release. Check whether the evaluation itself changed. If the new reviewer protocol is stricter, comparing its score directly with the old protocol may mislead the team.

A frozen model does not necessarily become worse simply because time passes. The surrounding world, source data, user requests, and application can change. A provider can also update the model behind an alias. These are different mechanisms with different remedies. Retraining is an expensive response to a stale policy index.

In the illustrative case, the trace might show that an expired document remained in a cache after the new index was deployed. Confirm that explanation against the cache and source records. Then test the corrected retrieval behavior and the resulting answers on affected cases. A correlation between a release and a score change is a starting point for investigation, not a completed diagnosis.

Observed changeCandidate mechanismInvestigation before remediation
More errors in a newly supported languageTask population differs from the baselineCompare representative cases and applicable sources within that cohort
Different answers after an index deploymentRetrieval or cache uses different materialInspect source revisions, cache keys and the passages actually returned
Shift in embedding distancesEmbedding model, preprocessing or population changedRe-establish comparable representations before interpreting distance as a quality change
More failed tool actions after a releasePrompt, tool schema or application behavior changedInspect validated requests and destination responses, not just answer text
Quality score improves without a releaseEvaluator, rubric or review selection changedCompare under the same measurement protocol before attributing improvement

Terms such as input drift, output drift and semantic drift can help organize an investigation if the team defines what they mean. A changed embedding distribution, for example, is a statistical observation; it does not identify whether the answers are now wrong. Choose a response based on the confirmed cause. Update a stale source or broken integration before considering whether the model needs to change.

Multimodal and voice workflows need similarly specific evidence. A wrong spoken answer could begin with a transcription error, an incorrect interpretation of the source image, or generation using the wrong policy. Record the stages and permitted artifacts needed to distinguish them. Do not add permanent audio or video capture merely because the instrumentation supports it.

Connect an alert to an action someone can take

Every consequential alert needs an owner, a severity decision, and a practical response. A queue of evaluator failures is useful only if the team knows what to inspect and how to limit the affected workflow. Decide whether the response is to hold an action, route a case for review, disable a tool, roll back a release, or reconcile completed writes.

Observation and enforcement have different jobs. An asynchronous alert can arrive after a refund has executed. If a policy must prevent that transaction, the relevant application or destination service needs a control before execution. Recording a policy violation after the event does not undo it.

Test telemetry failure too. If the collector is unavailable, establish whether the application buffers, drops events, slows down, or blocks a particular action. Bound queues and retries. Define which operations require an evidence record before proceeding and which can continue with a visible loss-of-observation incident. The choice depends on the workflow; silently dropping required evidence is not a neutral default.

An incident record should distinguish the attempted operation, accepted request, and verified destination state. Preserve the relevant versions and authorized evidence, assign the repair, then retest affected and legitimate cases. Add a regression case for the confirmed failure. The red-teaming playbook develops those action-boundary tests in more detail.

A second investigation: unsupported investment research

Consider a separate hypothetical service preparing investment-research drafts for an analyst. It retrieves market information and produces an explanation with citations. In one segment, source coverage is sparse, and the draft attributes a claim to an earnings event that cannot be found. No client delivery or trade execution is assumed in this example.

An evaluator could flag the missing support, but that flag is only the start. The investigator needs to inspect the retrieved material, the claim and the citation. Was the source absent, stale, misread or incorrectly linked? A large embedding distance between a question and its retrieval does not establish which of those occurred. A human reviewer may have to resolve whether the source can support the proposed inference.

Containment depends on the service’s authority. A draft-only tool can hold the affected output for review. A system able to publish research or initiate an action needs a defined control at that boundary. An asynchronous evaluator cannot guarantee that nothing reached a client before it raised an alert.

After a confirmed retrieval problem, a repair might add the missing source coverage and require the system to state when evidence is insufficient. Test that repair against both thin-coverage cases and ordinary questions, then inspect the resulting draft and citations. Merely changing the prompt or filling the index does not establish that the failure is resolved.

The useful sequence is detect, inspect, contain, repair and retest. Observability supplies evidence for the response; control and outcome verification establish what the response actually accomplished. An incident report should distinguish a suspected exposure from a confirmed action and a tested repair.

Plan for the implementation work behind the dashboard

Bridge legacy systems without pretending every step is visible

A wrapper around an older service can record the request and response at its boundary without revealing its internal operations. That may be enough to localize a failure, but it is not an end-to-end trace of the service itself. Record that gap and reconcile with the destination’s records when the action matters. Adding another proxy or microservice is a design choice with operating cost, not a prerequisite for instrumentation.

Agree on correlation and time handling across services, including queues and batch jobs. A team cannot reliably reconstruct ordering from timestamps alone when clocks differ or events arrive late. Preserve operation identity, known dependencies and the evidence the destination exposes. Test the actual asynchronous path rather than only the synchronous development example.

Control volume and failure propagation

Use collection rules appropriate to the question: aggregate routine service health, retain selected diagnostic detail and protect the evidence needed for consequential actions. Inspect payload size and high-volume attributes before expanding capture. Summarization and compression can reduce storage while also removing the very exception an investigation needs.

The telemetry path needs bounded queues and a documented response to overload. Determine what is dropped first, how loss is counted and whether recovery creates a burst that affects the application. A collector that silently falls behind can make an incident appear to start later than it did. Include the collector, evaluator and review pipeline in service-health checks.

Teach a shared investigation method

Developers, domain reviewers and operators need to recognize different failure classes. A retrieval problem calls for different evidence from a model timeout or a wrong transaction target. Use seeded examples to practice following a request, interpreting an evaluator result and checking the destination. Product tours are less useful than an investigator successfully explaining a known fault in the actual configuration.

Maintain a short runbook for each consequential failure: the evidence view, owner, containment option and repair check. Keep uncertainty explicit. An operator should be able to report “the request timed out; destination status is unresolved” without being forced to select an inaccurate completed/failed label.

Assign ownership across the workflow

The service owner defines the user outcome; engineering owns instrumentation and recovery; domain specialists define substantive correctness; security and privacy specialists review information boundaries; operations owns response. These responsibilities can be distributed across existing teams, but someone must own the end-to-end investigation.

Agree on reviewer capacity as well as routing. If a queue receives more cases than the team can resolve, define what happens to affected work and which cases take priority. A backlog is an operating condition to measure, not proof that a human is providing effective oversight.

Version the observability system too

Instrumentation, schemas, exporters, evaluation prompts and dashboards change independently of the application. Record those versions and test upgrades against representative traces. A renamed attribute can break a dashboard while leaving export apparently healthy; a second instrumentor can duplicate spans and inflate usage counts.

OpenTelemetry helps establish shared interfaces, but the implementation still needs compatibility checks. Export the same synthetic request to the intended backends and inspect hierarchy, attributes, events and links. Keep an exit plan for retained evidence and evaluations, which may not share the trace format’s portability.

Measure overhead in the intended configuration

Compare application latency and resource use with the proposed collection and evaluation settings, including failure and overload cases. Synchronous evaluation may add waiting time; asynchronous evaluation can report an issue after a result has been delivered. The architecture has to choose that tradeoff consciously.

Avoid treating every workflow as either fully logged or lightly sampled based only on its industry label. The decision depends on the operation, evidence obligations and data sensitivity. A high-impact action can need a durable minimal record while the surrounding diagnostic trace remains sampled. Test whether the resulting evidence is sufficient to investigate the failure the service owner cares about.

Select a platform through a bounded trial

A dated feature matrix can conceal differences in edition, deployment model, SDK, and retention policy. I would compare candidates using the same synthetic workflow and a written evidence checklist. A product tour cannot establish that tracing, deletion, and access controls work in the intended configuration.

Trace a request through retrieval, model invocation, a queued tool call, and a retry. Export the record and inspect which fields survive. Test a user with restricted access, masking before export, deletion under the proposed retention rules, and loss of connectivity. Check the permissions and costs of evaluations as well as tracing.

Build, buy, and hybrid options all carry operating work. Estimate integration, hosting, storage, evaluation calls, incident support, upgrades, review labor, and exit costs using the expected workload. Open source can improve inspectability and deployment control, but it does not eliminate migration costs or maintenance. OpenTelemetry compatibility helps interoperability; it does not guarantee equivalent feature support across backends.

For assurance claims, inspect the actual report and its scope rather than treating a badge as a guarantee. AICPA's SOC 2 description criteria concern the description of the service organization’s system in an examination of controls. Such a report is one input to supplier review. It does not establish that this application’s data handling or every applicable obligation is satisfied.

Compare documented capabilities, then test the gaps

Current product documentation is a starting point for the trial. The examples below were checked for this revision; they are not a ranking or a claim that every feature is available in every edition. The distinction between a collection library, a backend and an evaluation system is particularly important when assembling a stack.

Project or serviceNarrow documented capabilityQuestion for the bounded trial
PhoenixOpenTelemetry-based tracing, evaluations, datasets and experimentsCan the team connect a failed run to a reviewed case and compare a repair on the same inputs?
OpenLLMetryInstrumentation built on OpenTelemetry with export to different backendsWhich parts of this application’s framework, tools and asynchronous work are actually captured?
LangSmithOffline and online evaluation with different evaluator methodsCan a regression result and a live-sample result be distinguished, versioned and adjudicated?
LangfuseSDK masking hooks with explicit scope and exporter limitsDoes the installed setup protect the intended fields on every export route, including third-party instrumentation?
EvidentlyA Python evaluation library and platform capabilities including tracing, stored evaluations and dashboardsWhich evaluation and operating responsibilities belong to the library, platform and application?
HeliconeGateway and request-observability documentation including cost tracking and request segmentationWhat request data passes through the chosen integration, and which non-model workflow steps need separate tracing?

An existing application-performance platform can also be a sensible candidate when it already covers the service’s infrastructure and incident workflow. Verify its AI-specific evidence and evaluation behavior rather than assuming existing APM coverage extends to retrieval quality or tool outcomes. A consolidated dashboard can still contain disconnected records.

For an open-source option, inspect the actual licenses and deployment components rather than treating the label as a guarantee of control. Decide who runs storage, upgrades dependencies, manages access and handles an incident outside office hours. A hosted edition may add support or governance functions, but those functions need to be checked in the proposed contract and configuration.

Portability has several layers. Standard trace export can make it easier to change a backend, while annotations, prompt registries, evaluation definitions and review workflows remain product-specific. Include a small export-and-reconstruction exercise in the trial. It is more informative than a promise that adopting a standard eliminates lock-in.

Make build, buy and hybrid costs comparable

Building can be reasonable when observability behavior is a genuine differentiator or when the integration requirements cannot be met otherwise. It gives the team responsibility for the design and its lifecycle. The cost includes maintaining collectors, schemas, evaluators, access controls, review tools and recovery procedures as the application changes.

Buying may reduce some implementation work and offer a supported operating path. It still requires integration, data-handling decisions, evaluator configuration, supplier review and internal incident ownership. Self-hosting a vendor product changes the division of responsibility again: software support can remain external while storage, availability and upgrades become the customer’s work.

Cost or responsibilityCustom buildHosted serviceVendor software operated by the enterprise
Initial implementationDesign and integrate the collection, storage and review pathIntegrate SDKs/APIs and configure the serviceIntegrate and provision the deployment
Compute, storage and networkingBudget and operate directlyCheck what usage and retention the contract includesBudget infrastructure and scaling directly
Evaluation and human reviewImplement and fund the chosen methodsCheck included versus separately billed evaluation; fund internal reviewFund model/evaluation resources and review work
Maintenance and upgradesOwn the full stack and compatibility workDivide responsibility between supplier and application teamSupplier ships software; enterprise tests and operates upgrades
Security and information lifecycleImplement controls and evidenceVerify service scope and application configurationVerify product controls plus the operated environment
Incident supportProvide coverage and escalationCheck support terms and preserve internal outcome ownershipCoordinate product support and infrastructure response
Exit and migrationPreserve usable data and definitionsTest export and account for migration workTest data portability and dependency replacement

Use actual workload and quotes to turn that responsibility map into a budget. Avoid high/medium/low ratings that imply one route is inherently cheaper. A team with existing infrastructure may have a different incremental cost from a team starting from scratch, and both should account for the engineering capacity the choice consumes.

A simple planning equation is three-year cost = one-time setup + three × recurring annual cost + separately estimated migration or exit cost. This is an undiscounted scenario, not a financial forecast. If setup is an assumed $40,000 and recurring work is $60,000 a year, the three-year subtotal is $220,000 before any exit estimate. A second scenario with $10,000 setup and $75,000 annually has a $235,000 subtotal. The figures do not represent products or market prices; they show why a smaller setup cost does not settle the comparison.

Recurring cost should include the relevant engineering and review work, infrastructure, subscription, evaluation calls and support. Avoid counting a bundled service twice, and state what is excluded. Model several traffic and retention cases because long traces, media artifacts and repeated evaluation can change the cost differently from request count alone. Keep expected outcome quality and investigation capability alongside the budget.

Data location is another independent decision. Identify where collection, processing, storage, backups, support access and evaluator calls occur. A self-hosted backend can still send evidence to a hosted judge model. A regional storage option does not describe every processing route. Verify the actual proposed arrangement with the appropriate specialists rather than inferring it from a deployment label.

The best operating fit follows the team’s constraints: time to establish a useful investigation, available staff, integration complexity, required control and the workload it can afford to support. There is no general rule that a regulated organization must buy, that an advanced team must build, or that a hybrid is always the safest compromise.

Extend the design for multimodal and on-device work

For a voice assistant, a wrong answer can originate in speech recognition, policy retrieval, generation or speech synthesis. Record enough permitted evidence to distinguish those stages, including timing and relevant model versions. An accurate text response does not establish that the spoken output preserved a number or negation correctly. Evaluation needs to inspect the modality the user actually receives.

An image-based task similarly needs the source image revision or authorized artifact reference, any preprocessing and the resulting interpretation. A text transcript alone may omit the visual fact that determined the result. Define what investigators may inspect and how the media lifecycle works; capturing every recording indefinitely is not the default solution.

On-device systems add intermittent connectivity, limited storage and constrained compute. Decide which events stay local, which summaries or records may leave the device and what happens when the buffer fills. Preserve enough identity and timing to reconnect delayed events with the right attempt. Test loss, duplication and clock differences rather than assuming synchronization will reconstruct the history.

Local processing can reduce a particular transmission, but it does not automatically make the complete observability path private. Summaries can expose sensitive material, and later synchronization may copy it elsewhere. Techniques such as differential privacy, federated analytics or protected execution environments address particular threat models and need their own design and validation; naming them is not evidence that this deployment is protected.

Across these settings, the team needs to explain the material result using evidence it is permitted to retain. The collection and evaluation design should follow the actual modality, device and operating constraints.

Prove the investigation works before expanding it

Begin with one workflow and a few deliberately seeded failures in an isolated environment. The following checks are proposed acceptance criteria; they have not been executed for this article.

Seeded conditionEvidence the trial should produce
Expired policy retrievedThe record identifies the old source version and connects it to the answer.
Sensitive synthetic value in a tool errorExport inspection confirms the intended masking or exclusion on every configured route.
Model response succeeds, but refund write failsThe operation is reported as failed or unresolved, rather than completed from the model response alone.
Timeout after a write is acceptedDestination reconciliation distinguishes a completed action from a failed request before retry.
Evaluator disagrees with a qualified reviewerBoth decisions and their versions remain inspectable, with a route for adjudication.
Collector unavailableThe configured buffering, loss signal, and action policy match the documented behavior.

The first useful deliverable is a reproducible investigation: an owner can follow the affected request, identify the relevant source and configuration, inspect the actual outcome, and verify the repair. Expanding trace volume before that path works can make the system more expensive to operate without making its failures easier to resolve.

Turn the rollout into owned evidence

Use the following ten-part implementation sequence to produce evidence the team can inspect. Adapt it to the workflow and revisit it as the service changes; completing the list is the beginning of an operating practice.

StepDeliverableEvidence before moving on
1. Define goalsFailure classes and task-specific acceptance rulesA service owner can explain what each measure means
2. Choose signalsField allowlist, sources and retention purposesA sample record supports the investigation without unnecessary content
3. Select the stackBuild/buy/hybrid responsibility mapThe proposed configuration passes the bounded trial
4. InstrumentCorrelated request, retrieval, model, tool and destination recordsA seeded attempt can be reconstructed across actual boundaries
5. Establish baselinesReviewed regression cases and documented live-sample methodDenominators, cohorts and evaluator versions are explicit
6. Configure responseActionable alerts, owners and containment optionsA simulated alert reaches someone able to act
7. Organize reviewReviewer rubric, capacity and escalation routeAmbiguous cases can be adjudicated with usable evidence
8. Gate changesVersioned CI evaluation and material-failure rulesA known regression blocks promotion and a legitimate change can pass
9. Investigate changeComparable cohorts and a diagnostic runbookThe team can distinguish source, model, application and evaluator changes
10. Reassess coveragePeriodic review of failure classes, cost and missing evidenceNew tools, modalities and operating conditions trigger appropriate updates

A release gate should reflect the acceptance rule. A small improvement in an average should not override a critical disclosure or wrong-destination regression. Record approved exceptions and their scope; do not quietly change the test set or threshold to make a release pass. A controlled rollout still needs a rollback and a way to identify work performed before the rollback.

I would judge the initial investment by the investigation the team can now perform. Can an owner find the affected cases, distinguish what is known from what is missing, contain the problem and verify the correction? That is a concrete operating capability. More dashboards and more retained data are useful only when they strengthen it.

Sources and related work

Primary documentation reviewed October 18, 2026 is linked beside the relevant claims, including OpenTelemetry, the selected platform documentation and AICPA’s SOC 2 description criteria. Product documentation establishes documented behavior, not independent deployment performance. The workflows, arithmetic examples and trial criteria are an editorial synthesis to validate in the intended environment.

Making human oversight work for AI agents examines the evidence, authority, and working conditions a reviewer needs.

For related methods, see benchmarking language models, LLM-based agent architecture, Chain of Draft, hallucination detection and Chain-of-Tools. Research results in those articles need their own task and model scope; they are not general observability guarantees.


Discover more from Ajith Vallath Prabhakar

Subscribe to get the latest posts sent to your email.

Share or cite this article

LinkedInEmail

Ajith Vallath Prabhakar. “LLM observability: tracing failures from request to outcome.” ajithp.com, 9 June 2025. https://ajithp.com/2025/06/09/llm-observability-monitoring-building-safer-smarter-scalable-genai-systems/

Leave a Reply