# LLM observability

> LLM Observability: What It Is and What to Log. Canonical page: <https://zapple.tech/glossary/llm-observability/>

LLM observability is recording what an LLM application does in production, including prompts, responses, tool calls, token use, cost and latency, so you can inspect any run afterwards. It shows what happened. It does not show whether the answer was right. For that you need evaluation against expected answers.

## What is LLM observability?

LLM observability is the practice of recording what an LLM application does in production, so that you can open any run afterwards and see what happened. The unit is a trace: the record of one request and the steps inside it.

Vendor documentation describes the contents. [Langfuse](https://langfuse.com/docs/observability/overview) says application tracing captures structured logs holding the exact prompt sent, the model's response, token usage, latency and the tool or retrieval steps in between. [Datadog](https://docs.datadoghq.com/llm_observability/) says a trace can stand for a single model call, a fixed workflow of several calls, or a dynamic workflow run by an agent. The [OpenAI Agents SDK](https://openai.github.io/openai-agents-python/tracing/) records model generations, tool calls, handoffs and guardrail checks, and has tracing switched on by default.

Other names for the same idea are AI observability and agent observability.

## What should you log from an LLM call and an agent run?

The table is our reading of what is worth capturing and what each field lets you test. Which fields you can record depends on your tool.

| Field | The question it answers | The test it feeds |
|:--|:--|:--|
| User input and template variables | What was the model asked? | Replay a failed case as a regression test |
| Retrieved context | What was the model given? | Whether the answer stayed inside it (see [RAG evaluation](/glossary/rag-evaluation/)) |
| Output | What did the model say? | Scoring against an expected answer or a judge |
| Tool calls: name, arguments, result | What did the agent do? | Whether the right action ran, and the result was reported correctly |
| Model name and version | Which model answered? | Comparing behavior before and after a model change |
| Tokens, cost, latency | What did the run cost and how long did it take? | Budgets and slow-run alerts |
| User feedback | Did the user accept the answer? | Which traces to label first |

The [OpenTelemetry GenAI conventions](https://github.com/open-telemetry/semantic-conventions-genai) give names to several of these, including the model that responded and the tokens used. They carry the status "Development", so expect changes. They mark the input and output message text as "Opt-In". Our reading is that you switch recording of message text on deliberately.

## Do you need observability, evaluation or both, and which comes first?

You need both, and they answer different questions. Observability answers "what happened in this run". Evaluation answers "was it good, measured the same way each time". Langfuse's documentation puts the link plainly: tracing "gives your evaluations real production traces to run on".

Our rule of thumb for order:

- **Feature not released yet:** start with a small evaluation set. There is nothing to observe, and the set becomes your first baseline.
- **Feature already live with no records:** start with observability. You cannot test what you cannot see, and you need real cases to build the set from.
- **Either way:** plan the second one before the first is finished.

[MLflow's tracing documentation](https://mlflow.org/docs/latest/genai/tracing/) lists debugging, human feedback, evaluation, production monitoring and dataset collection as uses of the same traces. The part we would stress is the last one. A trace of a failed run is a ready source of a new test case. Our guides on [testing AI agents](/blog/types-of-automation-testing/how-to-test-ai-agents/) and [testing an MCP server](/blog/types-of-automation-testing/how-to-test-mcp-server/) show where the checks sit around the traces.

If you want that baseline built for you, [AI agent testing](/services/ai-agent-testing/) is the service that gives you a task set with written success criteria and a measured baseline of how your agent performs today.

Our reading: recorded outputs also let you compare behavior over time. A model swapped by its vendor can show up as a shift in them, which is the case our [model drift](/glossary/model-drift/) page covers. If a model grades the traces, the [LLM-as-a-judge](/glossary/llm-as-a-judge/) page lists the limits of that setup.

## Build on OpenTelemetry or buy a platform: what should you ask a vendor?

Our view: open conventions keep your data portable, and a platform saves you building storage, search and dashboards. Neither choice removes the need for a person to own the questions. Langfuse, Datadog, MLflow and the OpenAI SDK each document their own tracing, and the OpenTelemetry conventions are what you would export to. Start by writing down what you need to answer from a trace, then compare tools against that list. A tool that cannot show the retrieved context or the tool arguments fails the test above, however good its dashboard looks.

Our checklist of questions for any vendor, which is judgment and not a standard:

1. **Where is the data stored,** and in which region?
2. **What is stored from prompts and outputs,** and can you switch it off per field? The OpenAI documentation says certain spans "may capture potentially sensitive data" and gives a setting to leave it out.
3. **Can you export raw traces** in an open format, and what does export cost?
4. **How is it priced:** per trace, per event or per seat, and what happens at high volume?
5. **How long are traces kept,** and can you set your own retention?

## What does LLM observability not solve?

A trace shows what happened, not whether it was right. Without a labeled set and a person who owns the expected answers, a dashboard only counts calls. Logged prompts and outputs can carry personal data, so someone has to decide who may read them and for how long. Tracing also records what the system did when you were not looking, so it does not replace testing before release.

## What does Zapple.Tech do about it?

If you are not sure how your AI feature is tested today, start with the evidence. Zapple.Tech starts with a one-week QA audit of one product area. It looks at its tests, pipeline and release process, and ends in a written report on what is at risk and what to fix first, plus a pilot plan you can run with Zapple.Tech or without it. Read more on the [QA audit and assessment](/services/audit-and-assessment/) page.

Tell us about your AI feature in the form below.

## FAQ

### What is LLM observability?

LLM observability is recording and inspecting what an LLM application did in production. A record of one request, a trace, holds the prompt sent, the response, token use, latency and the tool or retrieval steps between them. Vendors also call it AI observability or agent observability.

### What is the difference between LLM observability and LLM evaluation?

Observability records what happened in real runs. Evaluation scores answers against a standard, such as expected answers or labels from people. Traces give evaluation real production examples to run on. Without evaluation, the traces tell you what was said, not whether it was right.

### What is the difference between LLM observability and monitoring?

In our usage, monitoring watches numbers over time, such as error rate, latency and cost, and alerts on a threshold. Observability keeps the detail of each run, so you can open one and see why it went wrong. In our view you need the detail as well as the numbers.

### What should you log from an LLM application?

Our list: the user input, the retrieved context, the output, each tool call with its arguments and result, the model name and version, token counts, latency and any user feedback. Decide up front which of these hold personal data, and how long you keep them.

### Does OpenTelemetry support LLM applications?

OpenTelemetry maintains generative AI semantic conventions for spans, metrics and events of model calls and agents. They are marked as in development, so names can still change. Before you choose a tool, check whether it documents support for them and whether it can export traces in that format.

## Sources

- [OpenTelemetry, GenAI semantic conventions repository (README and client inference spans; status Development)](https://github.com/open-telemetry/semantic-conventions-genai)
- [OpenAI Agents SDK documentation, Tracing (current docs)](https://openai.github.io/openai-agents-python/tracing/)
- [Langfuse documentation, AI Observability and Application Tracing (current docs)](https://langfuse.com/docs/observability/overview)
- [Datadog documentation, Agent Observability (page at /llm_observability/, current docs)](https://docs.datadoghq.com/llm_observability/)
- [MLflow documentation, GenAI tracing (current docs)](https://mlflow.org/docs/latest/genai/tracing/)
