We use analytics to count visits and form use. It is on unless you reject it. We show no ads on this site.

Glossary

LLM observability

Published . Last updated . Published by Zapple.Tech, founded by the founders of CodeceptJS and Codeception, open-source testing frameworks.

Also called
AI observability, agent observability
Published
Updated
Related service
AI agent testing
Definition

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

LLM observability: one trace records a request and the steps inside it, the retrieved context, the model call, the tool calls and user feedback; traces feed evaluation against expected answers and new test cases, because a trace shows what happened, not whether it was right

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 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 and testing an MCP server show where the checks sit around the traces.

If you want that baseline built for you, 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 page covers. If a model grades the traces, the 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 page.

Tell us about your AI feature in the form below.

  • Model drift

    Model drift is an AI feature getting worse, or just different, without any change to your code. The data it sees may have moved. We also count the vendor replacing the model behind it. You catch it by comparing today's behavior with a stored baseline, before your users notice that the answers changed.

  • LLM evaluation

    LLM evaluation is the practice of measuring how a language-model feature or agent behaves on a defined set of tasks, using written success criteria and scores. It does not by itself show the feature is correct. Our AI agent testing builds a task set, a measured baseline and a suite that scores each model, prompt or tool change.

  • RAG evaluation

    RAG evaluation measures a retrieval-augmented generation system in two parts: whether the search step returned the right passages, and whether the answer built from them is supported and useful. Scoring the two separately tells you which one to fix. You need a labelled question set before any score means something.

  • LLM as a judge

    LLM as a judge means using one language model to grade the output of another against a rubric, so a team can score thousands of answers unread by people. It is fast and flexible, but the judge makes its own errors. Trust its score only after you compare it with human labels, and check hard rules without a model.

  • LLMOps

    LLMOps, or large language model operations, is the set of practices for running LLM applications in production: versioning prompts and models, evaluating each change, gating releases and monitoring live traffic. It is MLOps adapted to language models. In our reading, testing owns the evaluation set, the release gate and the checks on live samples.

All terms in the glossary

Test AI

AI agent testing

AI agent testing for task success, tool calls and multi-step behaviour, run in a sandbox. Catch regressions when the model changes. One-week baseline.

See the service

Questions about LLM observability

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.

Request a QA audit quote

Tell us what you ship and what worries you.

What happens after you send this

  1. You send the form: your situation and what you need tested, then your name and work email.
  2. Within one business day, we reply with a suggested first step, its scope, timeline and a quote.
  • Fixed scope
  • You decide after each step
  • The tests live in your repository
  • An NDA signed before access

“They helped us to close the positions and consult our team how to proceed further. High-quality quick feedbacks with the deep checking of the required tasks, professional approach, great understanding of the company's technologies and product, detailed reports.”

Kristina Lavrentieva, Manager at keepgo.com, Israel
  • Rated 4.9 out of 5 on Clutch, from 7 client reviews
  • 42 completed test automation and infrastructure projects
  • Founded by the founders of CodeceptJS and Codeception, open-source testing frameworks

Request a QA audit quote

    What is closest to your situation?
    Optional. The product, the platforms, how often you release, what broke last.

    You decide after our reply whether to go ahead.

    Prefer to talk first? Book a call

    One-week QA audit · written report

    Request a QA audit quote