AI Observability, How to Monitor LLM Applications in Production

Saurav Jagdale
Technical Lead, Unico Connect
In this article
- Quick Answer
- Key Takeaways
- What AI Observability Means for Production LLM Systems
- Why Standard APM Is Not Enough for LLM Applications
- The Observability Stack Every LLM Team Needs Before Scale
- What to Monitor in Production
- How to Set Up AI Observability in Practice
- How Unico Connect Monitors Production AI Workflows
- LangSmith, Langfuse, and Broader Observability Tooling
- Instrument on OpenTelemetry to Avoid Lock In
- Common Observability Mistakes in LLM Production
- Frequently Asked Questions
- Build Production AI You Can Actually Operate
AI observability is the practice of understanding what happened inside a live LLM workflow, why it happened, and where it slowed down, failed, or drifted. Monitoring LLM applications in production means tracking traces, logs, latency, cost, drift, and workflow failures across the full request path, not just the model response. This article focuses on production monitoring and observability, not model evaluation. It is a practical guide for teams that are already shipping live AI workflows and need visibility they can use to operate them reliably.
Quick Answer
AI observability for an LLM application in production means tracing the full request path, not just the model call, so you can explain why a request behaved the way it did. Monitor traces, latency, cost, drift, and tool reliability, capture usable metadata on every request, and tie drift monitoring to releases. Standard APM covers uptime and infrastructure but misses prompt changes, fallback paths, and tool call chains. Dedicated tools like LangSmith and Langfuse add the trace level visibility that general monitoring does not.
Key Takeaways
- Observability is not uptime and it is not evaluation. It is the visibility to explain why a live request behaved the way it did, across the model call, retrieval, tool calls, and downstream actions.
- Standard APM is necessary but not sufficient. A request can succeed at the API level while quietly becoming slow and expensive through a fallback path and a prompt that doubled in size.
- Capture metadata on every request. Request ID, prompt version, model and version, route, tool calls, step timings, token usage, fallback status, and outcome are what make incident review and cost analysis possible.
- Watch latency and cost together, and make drift monitoring release aware. Most regressions show up right after a prompt, model, routing, or retrieval change.
- Tooling is converging on OpenTelemetry. Standard APM, AI native tracing tools like LangSmith, Langfuse, Arize Phoenix, and MLflow, and AI gateways like Helicone and Portkey now share the OpenTelemetry GenAI standard. Instrument on it so you can switch tools without reworking your code.
What AI Observability Means for Production LLM Systems
AI observability is broader than uptime monitoring and narrower than full model evaluation. In production LLM systems it means having enough visibility to explain why a request behaved the way it did, not just whether the endpoint returned successfully. That includes the model call, the retrieval step, tool calls, routing logic, and any downstream action the system triggered. The point is to understand request flow, not simply response content.
This matters because live LLM workflows are dynamic. They change with traffic patterns, prompt updates, model routing, and release cycles. A system can be technically healthy while still producing expensive, slow, or inconsistent outcomes. This article stays focused on observability and monitoring. If the question is quality, teams should treat continuous AI evaluations as a separate discipline, run asynchronously so they never block a live request.
Why Standard APM Is Not Enough for LLM Applications
Standard APM still matters. It is useful for uptime, infrastructure health, service errors, and broad latency alerts. What it does not show well is the shape of an LLM workflow, the prompt version changes, context growth, fallback behaviour, tool call chains, or the way routing logic changes after a release. Those are the failure modes that usually matter in production AI.
A request can succeed at the API level and still be operationally bad. A customer support workflow may return a correct looking answer, but only after a fallback path, several tool calls, and a prompt expansion that doubles token usage and adds a few seconds of latency. APM sees the request as successful. LLM observability shows that the system is becoming expensive and unreliable. That is why teams need tracing and LLM logging beyond classic endpoint monitoring. The same lesson shows up in why so many AI projects miss their return and in the gap between a model and a production system.
The Observability Stack Every LLM Team Needs Before Scale
The strongest teams add telemetry hooks from day one rather than bolting observability onto a live workflow later. That matters because once traffic grows, it becomes much harder to reconstruct what happened in a request path after the fact.
Map the request lifecycle end to end
Start by mapping the full path, from input, preprocessing, retrieval, and prompt assembly to the model call, tool call, output, and downstream action. Each step can slow down or fail independently. In multi step systems the request is not a single event, it is a chain. LLM tracing only becomes useful when every link in that chain is visible.
Decide what metadata to capture on every request
Every production request should carry enough metadata to make debugging and cost analysis possible. That usually includes request ID, prompt version, model and version, route, tool calls, step timings, token usage, fallback status, and final outcome. Without this, teams end up guessing which prompt, route, or model version caused a problem. Observability starts with usable metadata, not dashboard polish.
Set logging, redaction, and retention rules early
Teams should decide in advance what gets stored, summarized, redacted, or excluded. Production logs often contain sensitive business data or personal information, so PII handling, access controls, and retention windows need to be defined before rollout. Good LLM logging is selective. It captures enough to support incident review without creating unnecessary risk or storage bloat. For agent systems, this ties directly into how you govern agents at enterprise scale.
What to Monitor in Production
Monitoring signals are only useful if they reveal how the workflow behaves in production. The goal here is not implementation or dashboard design. It is to identify the signals that tell you something is going wrong.
Trace visibility and request flow signals
Trace visibility shows step level timing, workflow branching, tool sequence, fallback paths, and stuck states. In a multi step LLM system that is more valuable than a single response log, because most problems are not located in one line of code or one model call. A request may spend most of its time in retrieval, in a tool call, or waiting in a queue before the model even responds. LLM tracing helps reveal where the workflow is slowing down or fragmenting.
Latency and cost signals
Latency monitoring should include total latency, time to first token, retrieval delay, tool call delay, queue time, and tail latency. Cost monitoring should include cost per request, cost per route, model level cost, fallback cost, and token growth. These two signals need to be watched together because one often drives the other. A change that improves answer quality but expands context can quietly increase spend and latency at the same time. When you run several models in production, watch cost and latency per route, since a routing change can move both.
Drift, tool reliability, and workflow breakdown signals
AI drift monitoring is not just about model quality. In production, drift also appears as prompt drift, routing drift, context drift, schema drift, and tool behaviour changes. Reliability signals include retries, timeouts, malformed outputs, failed handoffs, and spike patterns after a release. These patterns tell teams when the system is becoming unstable, even if the model response still looks plausible on the surface.
How to Set Up AI Observability in Practice
Implementation works best when teams treat observability as part of the application, not an add on. The mechanics matter because LLM workflows are distributed and change over time.
Instrument traces across the full request path
Use trace IDs and spans to connect retrieval, model calls, tools, and downstream systems into one visible flow. Step level timing should be attached to each segment so teams can see where delays happen. A simple trace diagram or a redacted production example is often the best way to validate that the full path is actually covered. Observability is most useful when the trace tells a complete story.
Standardize structured logs and metadata
Structured logs should use consistent event names, JSON payloads, correlation IDs, and environment tags. That makes it easier to join logs to traces during incident review. The point is not to log everything, it is to ensure the right metadata is available when a workflow behaves unexpectedly. LLM logging becomes much more valuable when it can be searched and correlated cleanly.
Build dashboards and alerts for latency, cost, and failures
Dashboards should be organized by workflow, model, environment, language, or route depending on how the application is used. Alerts should watch for spend anomalies, latency spikes, failure rate changes, and fallback surges. Route level views matter because averages can hide the problem. One workflow path may be healthy while another is drifting badly.
Sample detailed traces at high volume
At high traffic, full trace capture on every request gets expensive fast. A common pattern is to log basic metrics on all requests and capture detailed traces on a sample, often 10 to 20 percent, plus every error and every slow request. That keeps the storage bill sane while preserving enough depth to reconstruct incidents.
Make drift monitoring release aware
Drift monitoring should be tied to prompt changes, routing updates, provider switches, and retrieval or data updates. If behaviour changes after a release, the monitoring system should make that visible quickly. This turns observability into part of release management rather than a passive reporting layer.
Assign owners and a review cadence
Someone needs to own dashboard review, alert triage, incident routing, and release checks. A practical cadence is daily triage, weekly review, and release based checks. Without ownership, observability becomes a set of graphs nobody acts on.
How Unico Connect Monitors Production AI Workflows
We treat observability at the workflow level, not just the model call, and we build it in before traffic grows.
How we instrument traces in multi step AI workflows
We enforce trace coverage across the user input, context assembly, the model calls, the tool calls, and the downstream actions, so no execution path stays hidden. When a request behaves oddly, the trace shows the whole path rather than one log line.
How we watch latency, cost, and route changes after a release
After any prompt, model, or workflow change, we monitor latency shifts, token cost changes, and route behaviour right away. We keep latency, cost, and drift monitoring operational and grounded, so a new release never quietly inflates daily provider spend for a client.
How we handle incidents in live AI workflows
When a live workflow behaves unexpectedly, we rely on automated alerting, log review, and release aware monitoring to escalate fast. Standardized logging lets the team isolate the exact point of failure and restore service without guesswork.
Most production AI incidents are not model failures. They are a fallback path, a prompt that grew, or a tool call that started timing out. If the trace does not show the whole request, the team is debugging blind. Instrument the full path before traffic grows, not after.
Saurav Jagdale, Technical Lead, Unico Connect
LangSmith, Langfuse, and Broader Observability Tooling
The LLM observability market grew to roughly 2.69 billion dollars in 2026 and is projected to reach 9.26 billion by 2030, and the tools that make it up are not interchangeable. The right choice depends on how much tracing depth, analytics, and workflow debugging a team needs. Open source and vendor managed options also differ in how much control teams want over deployment and data handling.
When LangSmith is the better fit
LangSmith fits teams that want strong trace visibility, chain inspection, and developer oriented debugging inside LangChain and LangGraph workflows. It is proprietary, and self hosting is an Enterprise option rather than the default, though it now supports OpenTelemetry so it is no longer limited to LangChain only. It is a practical choice when the main need is to inspect request paths and improve iterative development speed.
When Langfuse is the better fit
Langfuse is often a better fit when teams want tracing, analytics, and broader operational visibility in a production setting. It is open source, supports self hosting on an open storage stack, and is built around application tracing, token usage, latency, and cost tracking, with OpenTelemetry support. For teams that want more control over instrumentation and data residency, that matters, and self hosting can lower cost at high trace volume.
When broader observability stacks still matter
LLM production monitoring tools do not replace general app, infrastructure, and alerting systems, they complement them. A useful comparison is simple. LLM tools show request level behaviour, while broader observability stacks show system health, infrastructure saturation, and service level incidents. A third camp, AI gateways such as Helicone and Portkey, sits between your app and the providers for routing, caching, and cost tracking. Most production teams need more than one of these.
LLM observability tooling layers compared
| Tooling layer | Primary focus | Key metrics tracked | When to use it |
|---|---|---|---|
| Standard APM (New Relic, Dynatrace) | Platform and infrastructure health | Uptime, CPU and memory saturation, 5xx error rates | Baseline requirement for every production service |
| LangSmith | Deep trace visibility and developer debugging | Step level timing, prompt versions, chain inspection | Strongest inside LangChain and LangGraph workflows, and now supports OpenTelemetry for broader use |
| Langfuse | Operational visibility and cost control, open source | Token usage, cost, latency, self hosted data residency | Teams that want self hosting and control over their telemetry data |
| Arize Phoenix | Open source tracing and evaluation, built on OpenTelemetry | Spans, RAG metrics, hallucination and embedding drift detection | Teams that want deep tracing and evals without sending data to a third party |
| MLflow | Open source tracing across the full model and agent lifecycle | Inputs, outputs, prompt versions, step traces, token usage | Teams that want an open stack, with OpenTelemetry as the default substrate |
| Datadog LLM Observability | Enterprise LLM monitoring unified with existing APM | LLM spans, latency, cost, errors, native OpenTelemetry GenAI support | Teams already on Datadog that want LLM and infrastructure in one place |
| AI gateways (Helicone, Portkey) | Routing, caching, and cost control at the proxy layer | Cost per request, cache hit rate, provider routing | Teams that want cost control and routing with little code change |
Instrument on OpenTelemetry to Avoid Lock In
The most important shift in 2026 is not a single tool, it is a standard. OpenTelemetry graduated from the CNCF in May 2026, and its GenAI Semantic Conventions define exactly which span attributes describe an LLM call, an agent step, token usage, and cost. Datadog, MLflow, Langfuse, and LangSmith all support it, and MLflow now uses OpenTelemetry as its default tracing substrate.
The practical takeaway is simple. If you instrument your LLM workflow on OpenTelemetry rather than a single vendor SDK, you can move traces between tools without instrumenting your code again, which protects you from lock in as the market keeps shifting. One caveat worth planning for, the GenAI conventions are still experimental and not yet at a stable release, so attribute names can change, and it is wise to keep dual emission of old and new names on during transitions.
Common Observability Mistakes in LLM Production
The most common mistakes are operational, not technical. Teams skip trace IDs, which makes incidents hard to reconstruct. They ignore prompt or version tracking, which makes release comparisons impossible. They log too much or too little, so either storage becomes noisy or the data is not useful. Some rely only on provider dashboards and miss route level anomalies. Others track averages but not spikes, which hides the real problem. The final failure is ownership, when no one is responsible for incident review the same issues repeat. If you are building agent systems, designing orchestration and identity up front makes all of this far easier to instrument.
Frequently Asked Questions
What is AI observability in a production LLM application?
AI observability is the ability to understand what happened inside a live LLM workflow, why it happened, and where the flow slowed down or failed. It focuses on traces, logs, latency, cost, drift, and workflow behaviour rather than just the model response.
What should teams log for each LLM request in production?
At minimum, request ID, prompt version, model and version, route, step timings, tool calls, token usage, fallback status, and final outcome. That metadata is what makes incident review and cost analysis possible.
What should a latency and cost dashboard show for live LLM workflows?
It should show total latency, time to first token, retrieval delay, tool call delay, tail latency, cost per request, cost per route, and token growth. Route level views are important because averages can hide expensive or slow paths.
How is drift monitoring different from standard application monitoring?
Standard application monitoring watches service health and errors. Drift monitoring watches for changes in behaviour after prompt updates, routing changes, provider changes, or retrieval updates. It tracks whether the workflow is still behaving the same way after a release.
When should teams use LangSmith or Langfuse instead of general monitoring tools?
Use them when the team needs LLM tracing, prompt level visibility, token and cost tracking, or workflow debugging that general monitoring tools do not provide. General observability still matters, but it is not enough on its own for live LLM systems.
Should teams use OpenTelemetry for LLM observability?
In most cases, yes. OpenTelemetry graduated from the CNCF in 2026 and its GenAI Semantic Conventions are the standard that LangSmith, Langfuse, MLflow, Arize Phoenix, and Datadog now build on. Instrumenting on OpenTelemetry lets you move traces between tools without changing your code, though the GenAI conventions are still evolving, so expect some attribute names to change over time.
Build Production AI You Can Actually Operate
If you are shipping LLM workflows and want observability built in from the start, our agentic AI development and AI development services cover instrumentation, tracing, and release aware monitoring as part of the build, and you can hire AI engineers to extend your own team.




