# AI observability (LLM observability)

> Canonical: https://skillalmanac.com/glossary/observability | Last verified: 2026-11-25 | Index status: index-eligible

AI observability, often called LLM observability, is the practice of collecting data from AI models and applications, such as each model call, tool call and output, so you can see how an agent behaved and where it went wrong.

Also called: AI observability, agent observability, LLM tracing, LLM monitoring, agent tracing.

## In plain language

When an AI agent does something odd, the final answer rarely shows why. Observability means recording what happened along the way: which prompts went to the model, which tools it called, how long each step took, how many tokens it used and what came back. It is like a flight recorder for an agent. With it you can find a failing step, spot a costly loop or compare two versions. The limits: recorded data may contain private text, so it needs the same care as any sensitive log, and the tooling takes effort to set up. It shows what happened, but it does not fix the cause for you.

## Technical definition

IBM describes LLM observability as the process of collecting real-time data from LLM models or apps. LangSmith's documentation models this as runs, each a unit of work such as a model call, tool invocation or retrieval, grouped into a trace for a single operation; it notes that a run is equivalent to a span in OpenTelemetry. The OpenTelemetry GenAI semantic conventions define a shared vocabulary for spans, metrics and events for generative AI clients, with pages for MCP and provider-specific conventions, so data from different tools can use common attribute names. Check the repository for current status.

## How it shows up when you use agents

A coding agent or a multi-step [AI agent](/glossary/ai-agent) makes many model and tool calls for one request. If the result is wrong, slow or expensive, you need the middle of the story. Observability data gives you that: the sequence of calls, their inputs and outputs, timings and token counts. Some [agent harnesses](/glossary/agent-harness) save session transcripts you can read afterwards, and teams that run agents in production often send the same data to a tracing service.

What breaks when this is misunderstood: a team ships an agent with only final-answer checks, then cannot tell whether a bad answer came from retrieval, a tool error or the prompt. A practical start is to keep the transcript, review where tokens went with the [session cost review](/skills/skill-almanac/agent-session-cost-review), and group repeated failures with the [error clustering skill](/skills/skill-almanac/log-error-clustering). Decide early who may read the recorded text, because prompts and outputs can contain personal or confidential data. Scoring outputs with an [LLM as a judge](/glossary/llm-as-a-judge) is an evaluation method that can sit on top of traces; it is not the same thing as collecting them.

## Common confusions

- **Observability versus evaluation.** Observability records what happened. Evaluation scores whether it was good. They use each other's data but answer different questions.
- **Trace versus log.** LangSmith describes a trace as a collection of runs for a single operation. A log line is one event, and a trace links the related steps.
- **Observability versus monitoring.** In general use, monitoring watches known signals and raises alerts, while observability data is also used to investigate questions you did not plan for.
- **Myth.** Observability makes an agent safer by itself. It gives you the evidence, and someone still has to read it and act.

## Worked examples in this catalogue

### [agent-session-cost-review](https://skillalmanac.com/skills/skill-almanac/agent-session-cost-review)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A report on where a coding-agent session spent its tokens, produced by a script that parses the saved session transcript.

Why it exercises the concept: A saved transcript is a trace of a session. This skill reads that record to answer a question about the run after it ended, which is what observability data is for.

### [log-error-clustering](https://skillalmanac.com/skills/skill-almanac/log-error-clustering)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A huge log turned into a ranked table of distinct error signatures, with counts, timing and a triage order.

Why it exercises the concept: Agent traces and logs get large. Grouping repeated errors into signatures is a standard first step before reading individual records.

### [log-file-field-parser](https://skillalmanac.com/skills/skill-almanac/log-file-field-parser)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A text or JSON-lines log file parsed into timestamp, level and message fields, with counts per level and a list of lines that could not be parsed.

Why it exercises the concept: Raw log lines can be searched as text. Parsing them into timestamp, level and message fields also enables structured field queries and aggregation.

## Related terms

- [AI agent](https://skillalmanac.com/glossary/ai-agent.md)
- [Agent harness](https://skillalmanac.com/glossary/agent-harness.md)
- [LLM-as-a-judge](https://skillalmanac.com/glossary/llm-as-a-judge.md)
- [Tool calling (function calling)](https://skillalmanac.com/glossary/tool-calling.md)
- [Agentic AI](https://skillalmanac.com/glossary/agentic-ai.md)
- [Human in the loop (HITL)](https://skillalmanac.com/glossary/human-in-the-loop.md)
- [Langfuse](https://skillalmanac.com/glossary/langfuse.md)

## Sources

- [OpenTelemetry GenAI Semantic Conventions](https://github.com/open-telemetry/semantic-conventions-genai), OpenTelemetry (accessed 2026-11-24)
- [Observability concepts](https://docs.langchain.com/langsmith/observability-concepts), LangChain (LangSmith) (accessed 2026-11-24)
- [What is LLM observability?](https://www.ibm.com/think/topics/llm-observability), IBM (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-25. [Glossary index](https://skillalmanac.com/glossary.md).
