AI PM 10X / BUILDING & SHIPPING
AI Observability
How to see what your AI actually does in production. Tracing, monitoring, and the loop that turns real failures into better tests.
Overview
AI observability is how you see what your AI feature actually does once real users hit it. It sits between evals, which test the model before you ship, and business metrics, which track outcomes after the fact. It covers neither of those. The unit of observability is the trace, a full record of one request or one agent run, broken into spans for each model call, retrieval, and tool call, with the prompts, responses, tokens, latency, and cost attached.
For product managers, observability is what turns a vague complaint into a fixable bug. With traces you can debug a bad output, watch quality, cost, and latency in production, and detect drift before users do. The captured failures then feed back into your eval datasets, so each release gets more reliable. A category of tools makes this concrete, including LangSmith, Langfuse, Arize Phoenix, and Helicone, and the OpenTelemetry GenAI conventions are starting to standardise how the data is recorded.
Start here — a 50-minute learning path
Three resources in sequence that cover the vocabulary, the second view, and why it all connects to quality
Langfuse · The clearest plain-English account of the trace and span model. Read this first so the rest of the vocabulary lands.
LangChain · The same ideas from a second vendor, with a useful mental model of how a request becomes a tree of spans you can inspect.
Hamel Husain · The practitioner essay that explains why production logs are the raw material for evals. It connects observability to quality, which is the whole point.
Why It Matters for PMs
You cannot fix what you cannot see
A model swap or prompt change can pass every test you wrote and still fail on real traffic. Observability shows you the actual inputs and outputs your users get, so you debug from evidence rather than guesses.
Cost and latency are product decisions
Token cost and response time are product concerns. They shape margin and user experience directly. Per-request tracing is the only way to see which features and which users drive the bill.
Production is your best test set
The failures that matter most are the ones real users hit. Captured traces become the examples you add to your eval suite, so each bug you find makes the next release safer.
Key Concepts
Three ideas that build on each other, from the raw trace to the feedback loop
Tracing a request or agent run
Foundation · The unit of observabilityThe unit you work with is the tracetraceA trace is the full record of one request or one agent run from start to finish. It captures everything that happened, so you can replay exactly what the user experienced.Langfuse on the trace data model. Inside it, each model call, retrieval, and tool call is a spanspanA span is one step inside a trace, for example a single model call or a vector search. Spans nest into a tree, with prompt, response, tokens, latency, and cost attached to each.OpenTelemetry on spans, with the prompt, response, token count, latency, and cost attached. Group related traces into a sessionsessionA session links the traces from one conversation or one user journey, so you can see a multi-turn chat as a whole rather than as disconnected requests.Langfuse on sessions and you can follow a whole conversation as a single continuous thread.
Monitoring quality, cost, and latency
Production · Watch the live systemOnce traces flow in, you watch three things over time. Speed shows up as p95 latencyp95 latencyThe 95th percentile latency. 95 percent of requests are faster than this number. It catches the slow tail that an average would hide, which is where users feel the pain.LangSmith observability concepts, spend shows up as cost per requestcost per requestThe dollar cost of a single request, derived from input and output token counts times the model's per-token price. Tracking it per feature and per user shows where the bill actually comes from.Langfuse on metrics, and reliability shows up as the error rateerror rateThe share of requests that fail outright, from API timeouts, rate limits, or malformed model output that your code cannot parse. A rising error rate is the first sign something upstream broke.Helicone on LLM observability. Dashboards turn raw traces into trends you can alert on.
Closing the loop
Compounding · Logs become testsThe payoff comes from feeding production back into testing. Run online evaluationonline evaluationScoring live production outputs as they happen, often with an LLM grading the response or with lightweight heuristics. It surfaces quality drops without waiting for a user to complain.LangSmith on online evaluation on live traffic, watch for driftdriftDrift is a gradual shift in your inputs or the model's behaviour over time, so a feature that worked at launch slowly degrades. Comparing recent traces against a baseline catches it early.Evidently on data drift, then promote the failures you find into your eval dataseteval datasetA curated set of inputs with known-good answers that you run new prompts and models against before shipping. Real production failures are the highest-value examples to add.Langfuse on evaluation datasets. Each captured bug makes the next release more reliable.
The vocabulary to know
Hover over any term for a plain-English explanation and a link to go deeper.
Record what happened
Watch the live system
Measure outputs on real traffic
Where the data lives
In Practice
Four ways observability changes how PMs ship and run AI features
Debugging a bad output from the trace
A user reports a wrong answer and you want the cause. With tracing you open the exact trace, read the prompt the model actually received, the documents it retrieved, and the tool calls it made. Most bad outputs trace to a missing retrieval or a malformed input, which a screenshot of the chat would never show you.
Catching a cost or latency regression before finance does
A prompt tweak that adds a few hundred tokens to every call looks harmless in testing. In production it can move the monthly bill and slow the p95 enough to hurt retention. Watching cost per request and latency per feature means you see the regression in your dashboard before it surfaces in a finance review three weeks later.
Turning a production failure into a permanent test
When you find a failure on real traffic, patch it and also capture it. Add that exact input to your eval dataset with the answer it should have given. The bug becomes a regression test, so the same failure cannot ship again. Over months this is how an AI feature gets more reliable rather than drifting.
Choosing tooling without locking yourself in
Picking an observability vendor is a real decision, and the GenAI semantic conventions from OpenTelemetry let you instrument once and switch backends later. If your traces hold sensitive data, an open-source, self-hostable option like Langfuse or Arize Phoenix keeps that data inside your own boundary. Decide on data residency before you decide on dashboards.
Curated Resources
Foundation
Tracing data model: traces, observations, and sessions
10 min readDocs · Langfuse
The cleanest reference for the core vocabulary. Explains how a request becomes a trace, how steps become observations, and how sessions group a conversation.
Observability concepts in LangSmith
12 min readDocs · LangChain
A second vendor view of the same ideas, with a clear picture of how runs nest into a tree of spans you can inspect, replay, and score.
What are traces? (Phoenix tracing concepts)
10 min readDocs · Arize
Arize Phoenix is an open-source tracing and evaluation tool. This page walks through what a trace captures for an LLM or agent application, with concrete examples.
OpenTelemetry GenAI semantic conventions
15 min readDocs · OpenTelemetry
The emerging open standard for how to record model calls, tokens, and costs. Worth knowing because it is what lets you avoid lock-in to a single observability vendor.
Go Deep
Your AI product needs evals
30 min readArticle · Hamel Husain
The essay that connects observability to quality. It argues that production logs are the raw material for evals, and shows the loop from captured failure to better test set.
A field guide to rapidly improving AI products
35 min readArticle · Hamel Husain
A practical, opinionated guide to debugging and improving live AI features. The sections on error analysis from real traces are directly relevant to observability work.
What we learned from a year of building with LLMs
40 min readArticle · Yan, Huang, Bischof et al.
A widely cited practitioner write-up from a team of LLM builders. Its lessons on monitoring, logging, and treating production as a data source are gold for PMs.
LLM observability (overview)
12 min readArticle · Helicone
A vendor-neutral primer on what LLM observability covers and why it differs from classic application monitoring. Good for grounding the cost, latency, and quality framing.
Online evaluations: scoring live traffic
15 min readDocs · LangSmith
A how-to on running evaluators against production traces in real time. Shows the mechanics of measuring quality on live traffic rather than only before launch.
Videos

Arize AI
OpenTelemetry Concepts for AI: Span, Trace, Session
A short, clear explainer of the three building blocks of observability mapped onto AI applications. The fastest way to lock in the vocabulary.

Langfuse
10-min Walkthrough of Langfuse: Open-Source LLM Observability
A guided tour of an open-source observability platform, covering tracing, evaluation, and prompt management. Useful to see what the dashboards actually look like.

Hamel Husain
What Actually Counts as a 'Trace' in Production LLM Systems
A practitioner unpacks what belongs in a trace and why it matters for debugging real systems. Sharp, opinionated, and grounded in production work.

Analytics Vidhya
LangSmith vs Langfuse: Build vs Monitor LLM Apps Explained
A side-by-side comparison of two leading observability tools, framed around what each is best at. Helpful when you are choosing where your traces will live.

Technology Whisper
Large Language Model Ops (LLMOps) Explained Simply
A six-minute overview of LLMOps, the operational discipline that observability sits inside. Good context for where monitoring fits in the wider lifecycle.

IBM Technology
Observability vs APM vs Monitoring
A foundational explainer on what observability means and how it differs from plain monitoring. Not AI-specific, but it sets the mental model the rest builds on.
Key Takeaway
Observability is how an AI feature earns your trust over time. Trace every request, watch cost, latency, and quality on live traffic, and feed each failure back into your evals so the same bug never ships twice.