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.

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

1

Tracing a request or agent run

Foundation · The unit of observability

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

2

Monitoring quality, cost, and latency

Production · Watch the live system

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

3

Closing the loop

Compounding · Logs become tests

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

Tracing

Record what happened

TraceTraceThe full record of one request or agent run from start to finish. It is the atomic unit of observability and lets you replay exactly what the user experienced.Langfuse on tracesSpanSpanOne step inside a trace, such as a single model call, a retrieval, or a tool call. Spans nest into a tree with prompt, response, tokens, latency, and cost on each.OpenTelemetry on spansSessionSessionA group of traces from one conversation or user journey, so a multi-turn chat reads as a whole rather than as disconnected requests.Langfuse on sessions
Monitoring

Watch the live system

p95 latencyp95 latencyThe 95th percentile of response time. 95 percent of requests are faster than this. It exposes the slow tail that an average hides, which is where users actually feel lag.LangSmith observability conceptsCost per requestCost per requestThe dollar cost of one request, from input and output token counts times the per-token price. Tracked per feature and per user, it shows where the spend really goes.Langfuse on metricsError rateError rateThe share of requests that fail, from timeouts, rate limits, or output your code cannot parse. A rising error rate is the earliest signal that something upstream broke.Helicone on observability
Quality in prod

Measure outputs on real traffic

Online evaluationOnline evaluationScoring live outputs as they happen, often with an LLM grader or lightweight heuristics. It catches quality drops in real time rather than waiting for a complaint.LangSmith on online evalsDriftDriftA gradual shift in inputs or model behaviour that degrades a feature over time. Comparing recent traces against a baseline catches it before users do.Evidently on data driftGuardrail metricsGuardrail metricsCounts of outputs that break a rule you set, such as leaking PII, going off-topic, or exceeding a length limit. They turn safety policy into a number you can watch.Langfuse on scores
Tooling

Where the data lives

LangSmithLangSmithA managed observability and evaluation platform from the LangChain team. It traces requests, runs evals, and manages prompts, and works with or without the LangChain framework.LangSmith docsLangfuseLangfuseAn open-source LLM observability platform covering tracing, evaluation, and prompt management. Self-hostable, which matters when traces contain sensitive data.Langfuse docsOpenTelemetryOpenTelemetryThe open standard for traces, metrics, and logs. Its GenAI semantic conventions define how to record model calls in a vendor-neutral format, so you can switch observability backends freely.OpenTelemetry GenAI conventions

In Practice

Four ways observability changes how PMs ship and run AI features

1

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.

2

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.

3

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.

4

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

Videos

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.