LLM observability
Tracing every model call with inputs, outputs, latency, tokens, cost and the user outcome.
LLM observability is tracing every model call in an AI feature with its inputs, outputs, latency, tokens, cost and the outcome for the user. For agents it records each step: which tool was called, with what arguments, and what came back. It is how you find out what the feature actually did.
Logs and traces show what the agent actually did, step by step, and what it cost. Joined with product analytics, they show whether the feature helps users or just runs. Privacy rules decide what content can be stored: prompts often hold personal data, so teams mask it (PII redaction), sample, or keep only metadata. OpenTelemetry publishes semantic conventions for generative AI, a shared vocabulary for model, token and tool attributes, so traces can go to any compatible backend.
This is the AI-specific layer of general observability. Traces are also the raw material for trajectory evals, and for cost per task when each call carries a task id. The common mistake is collecting traces nobody reads. Pick the questions first (why did this answer fail, what did this customer cost) and feed real conversations from production into your evals.
Sources
- GitHub: GenAI semantic conventions github.com
Related terms
- Evals: A repeatable test set that scores an AI feature, so changes can be measured instead of guessed.
- Tokens: The pieces of text models read and write, and the unit you pay for.
- AI gateway: A proxy between your app and model providers that adds logging, caching, limits, billing and fallbacks.
- Observability (o11y): Being able to tell what a running system is doing, and why, from the data it emits: logs, metrics and traces.
- Trajectory evals: Tests that grade an agent’s whole path to an answer: which tools it called, in what order, how many steps and at what cost, not only the final output.
- Cost per task (agent unit economics): What one finished agent task really costs: tokens, retries, tool calls and the human time to review it, compared with doing it another way.
- OpenTelemetry (OTel): An open, vendor-neutral standard and set of SDKs for producing and sending traces, metrics and logs.
- PII redaction: Removing or masking personal data, such as names, emails and ID numbers, before text reaches a model, a log or a third party.
