LLM Observability Checklist: Track Quality, Latency, Cost, and User Feedback
llm-observabilityai-monitoringllmopstracingproduction-ai

LLM Observability Checklist: Track Quality, Latency, Cost, and User Feedback

PPromptCraft Studio
2026-11-20
8 min read

A practical LLM observability checklist for estimating cost and tracking latency, quality, errors, tool calls, citations, and user feedback.

Production LLM applications need more than an uptime check. This LLM observability checklist shows what to capture, how to estimate cost and performance, which quality signals to place on a dashboard, and when to revisit your assumptions as traffic, prompts, models, and user behavior change.

Overview

LLM observability is the practice of collecting enough application, model, and user data to explain what happened during an AI request. In a production AI assistant, a useful trace should help you answer questions such as: Was the request slow because of retrieval, a tool call, or model generation? Did the application exceed its token budget? Did the model refuse, return an invalid format, or cite irrelevant material? Did the user accept the answer or immediately try again?

A practical monitoring system combines four layers:

  • Reliability: request success rate, timeouts, retries, provider errors, rate-limit events, and fallback usage.
  • Performance: end-to-end latency, time to first token, model-generation time, retrieval time, tool-call duration, and queue time.
  • Economics: input tokens, output tokens, cached or reused context when available, requests, estimated provider cost, and cost per successful task.
  • Quality and safety: refusals, schema-validation failures, citation coverage, retrieval results, user feedback, escalation, and evaluation scores.

Do not treat these as isolated numbers. A lower average latency can hide a small group of very slow requests, while a low error rate can coexist with poor answers. Use percentiles, segmented views, and traces that connect the user request to retrieval, model, tool, and response events.

Observability is different from evaluation. An evaluation harness tests a controlled dataset before or after deployment; observability describes what happens in real traffic. Both are needed. A regression set can identify a prompt change that harms quality, while production traces reveal whether the same change affects token use, latency, refusals, or user behavior. See the LLM evaluation harness guide for the testing side.

How to estimate

Start with a request-level accounting model. Give every request a stable trace ID, then record each stage under that trace. A simple flow might be:

  1. Receive and authenticate the request.
  2. Apply input validation, redaction, or routing.
  3. Retrieve documents or other context.
  4. Call the model.
  5. Run tools, validation, or a second model call if required.
  6. Return the answer and record user feedback or downstream success.

For each stage, record a start timestamp and end timestamp. Calculate:

stage_duration_ms = stage_end_ms - stage_start_ms
end_to_end_ms = response_completed_ms - request_received_ms
provider_cost = (input_tokens / input_unit) * input_rate
               + (output_tokens / output_unit) * output_rate
cost_per_success = total_estimated_cost / successful_business_outcomes

The cost formula is deliberately parameterized. Provider pricing, billing units, cached-token treatment, and model-specific fields can change, so store the rates and units as configuration rather than embedding them in dashboard queries. If your provider reports a different billing measure, use that measure and label the calculation clearly as an estimate.

Use a volume forecast to turn per-request measurements into a planning range:

monthly_requests = daily_requests * active_days
monthly_input_tokens = monthly_requests * average_input_tokens
monthly_output_tokens = monthly_requests * average_output_tokens
monthly_estimated_cost = monthly_requests * average_cost_per_request

Calculate both mean and percentile values. The average helps with budget planning; p95 or p99 helps with user experience and capacity decisions. Segment results by model, feature, tenant, geography, request type, prompt version, retrieval route, and success status. A single global average is rarely actionable.

For quality proxies, choose measures tied to the actual task. Examples include valid structured-output rate, grounded-answer rate from a review or evaluator, citation coverage, tool-call success, human escalation rate, user retry rate, and positive or negative feedback. These are proxies, not complete measures of truth or usefulness. Keep the definition and sampling method beside each metric so the number remains interpretable.

Inputs and assumptions

Before creating dashboards, define a compact observability field dictionary. The following fields cover most production LLM application paths without requiring you to store every prompt and response indefinitely.

AreaRecommended fieldsWhy it matters
Requesttrace_id, request_id, timestamp, feature, tenant_key, environment, regionJoins events and supports safe segmentation.
Promptsystem_prompt_version, template_version, input_length, retrieved_context_lengthConnects behavior changes to prompt and context changes.
Modelprovider, model_id, temperature or equivalent settings, finish_reasonExplains differences between routes and deployments.
Usageinput_tokens, output_tokens, total_tokens, cached_tokens when availableSupports cost and context analysis.
Timingqueue_ms, retrieval_ms, tool_ms, model_ms, first_token_ms, total_msShows where latency is introduced.
Outcomestatus, error_class, refusal, validation_passed, fallback_usedSeparates failures from successful responses.
Groundingdocument_ids, retrieval_count, reranker_used, citation_countHelps investigate RAG quality and citation behavior.
Feedbackrating, correction_requested, retry, escalation, task_completedConnects technical telemetry to user outcomes.

A trace event can use a schema like this:

{
  "trace_id": "generated-server-side",
  "feature": "support_assistant",
  "prompt_version": "support-v12",
  "model_id": "configured-model-name",
  "input_tokens": 0,
  "output_tokens": 0,
  "latency_ms": {
    "retrieval": 0,
    "tools": 0,
    "model": 0,
    "total": 0
  },
  "outcome": {
    "status": "success|error|refusal",
    "validation_passed": false,
    "fallback_used": false
  },
  "feedback": {
    "rating": null,
    "retry": false,
    "escalated": false
  }
}

Use opaque identifiers for users and tenants. Avoid placing email addresses, message bodies, access tokens, retrieved document text, or tool arguments containing sensitive data into unrestricted logs. Prefer hashes, redacted previews, document IDs, field-level allowlists, and short retention for sampled content. The PII redaction workflow provides a useful companion process.

Set alert thresholds from your baseline rather than copying a universal number. A workable alert worksheet contains:

  • Metric: for example, p95 total latency or invalid-output rate.
  • Scope: model, feature, tenant, region, or all traffic.
  • Baseline: a recent comparable period.
  • Warning: a level that prompts investigation.
  • Critical: a level that triggers mitigation.
  • Duration: how long the condition must persist.
  • Owner and action: the person responsible and the first response step.

Typical alert candidates include a sustained rise in provider errors, timeouts, p95 latency, token use per request, cost per successful task, refusal rate, invalid structured output, failed tool calls, or missing citations. Add a volume condition where appropriate so a low-traffic feature does not generate noisy alerts from a tiny sample.

Worked examples

Example 1: Estimating monthly model spend

Assume an assistant receives 20,000 requests in a planning month. Each request averages 2,400 input tokens and 700 output tokens. The team has configured an input rate of R_in per billing unit and an output rate of R_out per billing unit. If the billing unit is 1,000 tokens, the estimate is:

input_units = 20,000 * 2,400 / 1,000
output_units = 20,000 * 700 / 1,000
estimated_cost = input_units * R_in + output_units * R_out

Keep this calculation in a spreadsheet or configuration table where the rates can be changed independently of the dashboard. Add separate rows for retries, fallback models, embeddings, reranking, or other billable stages when they apply. Then compare the estimate with actual usage and investigate the variance rather than silently changing the assumptions.

Example 2: Finding a latency bottleneck

Suppose a trace reports 1,900 ms total latency: 250 ms for retrieval, 300 ms for tools, 1,200 ms for model generation, and 150 ms for application overhead. The model stage is the largest contributor, but the next investigation should still compare requests with and without tools, different output lengths, and different prompt versions. If a prompt change increased retrieved context and output size, token growth may be the underlying cause. A token optimization review can help reduce unnecessary context before changing infrastructure.

Track first-token latency separately from completion latency. A streamed answer may feel responsive even when total generation takes longer, while a non-streamed answer can appear frozen during the same interval. Report both values when the interface exposes streaming.

Example 3: Investigating a quality drop

A dashboard shows that positive feedback is stable, but citation coverage and valid structured-output rate have fallen after a release. Filter traces by prompt version and compare retrieval counts, retrieved document IDs, model finish reasons, validation errors, and fallback usage. If retrieval changed, review chunking, search, and reranking. If the prompt changed, compare the old and new templates on a fixed regression set and examine sampled production traces. Do not infer quality from feedback alone; users may not report an incorrect answer, and a retry can conceal the first failure.

For prompt changes, retain the version, release timestamp, experiment allocation, and rollback target. The prompt versioning guide and prompt testing checklist cover the operational details.

When to recalculate

Revisit the observability model whenever its inputs change. At minimum, review it monthly using recent traffic and incident data, and perform an additional review after a model, provider, prompt, retrieval, tool, or pricing change.

  • New feature launch: add feature-specific success criteria, traces, and dashboards before broad rollout.
  • Traffic increase: recalculate token volume, queue time, rate-limit exposure, and cost using current request mix.
  • Provider or model change: verify telemetry field names, usage reporting, finish reasons, latency behavior, and cost configuration.
  • Prompt or RAG change: compare token use, citations, retrieval quality, validation, and user feedback by version.
  • Incident: preserve relevant traces, update the alert or runbook, and record which signal would have detected the issue earlier.
  • Privacy or retention change: review sampled content, redaction rules, access controls, and deletion behavior.

End each review with three concrete actions: remove one low-value metric, improve one missing trace field, and adjust one threshold or dashboard view based on evidence. For a new production deployment, verify the following before launch:

  1. Every request has a trace ID and outcome status.
  2. Latency is split by retrieval, tools, model, and total duration.
  3. Input and output usage are recorded with a versioned cost assumption.
  4. Errors, refusals, validation failures, retries, and fallbacks are distinguishable.
  5. RAG traces retain document identifiers and retrieval metadata without unnecessary content.
  6. User feedback and business-task outcomes can be joined to technical traces.
  7. Alerts have owners, duration windows, and documented first actions.
  8. Logs use redaction, access controls, and retention appropriate to the data.

Observability becomes valuable when it shortens the path from symptom to decision. Keep the field dictionary, cost worksheet, dashboards, and incident notes together; update them when real traffic changes. For reliability controls such as retries, timeouts, and fallbacks, pair this checklist with the LLM API reliability patterns guide.

Related Topics

#llm-observability#ai-monitoring#llmops#tracing#production-ai
P

PromptCraft Studio

AI Development and Prompt Engineering Editor

Senior editor and content strategist. Writing about technology, design, and the future of digital media. Follow along for deep dives into the industry's moving parts.