Traditional logging was built for deterministic code. LLM observability has to handle something messier: nondeterministic models, token-based billing, and outputs that are hard to assert against. This guide covers what to track on every LLM call and the observability tools that make AI observability actionable.
Why LLM observability is different
When a request fails, a classic log tells you the status code. When an LLM call returns a subtly wrong answer, nothing throws an exception - and the request "succeeded". LLM observability means capturing the dimensions that actually matter for generative workloads: latency, cost, tokens, provider, model, and quality.
An AI observability platform gives you a complete picture of a request the moment it happens:
- Latency - total duration, time to first token, and the breakdown by part: sign-in, key lookup, protections, the provider's first byte, streaming, and other.
- Cost - the estimated spend per request, computed from input and output token counts.
- Tokens - prompt vs. completion breakdown, so you can spot bloated system messages.
- Status - answered, cut off, refused, blocked, flagged, failed or other model answered, with the HTTP status and error code.
- Quality - evaluation scores attached to the request so "healthy" is measurable.
LLM observability tools to look for
Not every observability tool is built for LLMs. The ones that matter combine a request ledger with analytics you can slice by any dimension:
- A request ledger that logs every call with model, provider, cost, latency, tokens, and time.
- Runs, conversations and jobs that group multi-step flows - RAG pipelines, agent loops - the turns of a chat, and batches of independent items across many requests.
- Your attributes (
X-Property-*) so you can tag and group requests by environment, feature, or tenant. - Analytics over cost, latency, and quality by model, provider, user, or any property.
- Export to CSV or JSON Lines for security reviews and offline analysis.
Getting started with LLM observability
You don't need to build a pipeline from scratch. Point your SDK at one OpenAI-compatible endpoint, and observability is collected automatically:
from openai import OpenAI
client = OpenAI(
api_key="inf_prod_x9y8z7",
base_url="https://api.infere.com/v1",
)
response = client.chat.completions.create(
model="gpt-4o-mini", # the model named on the request
messages=[{"role": "user", "content": "Summarize the latest release"}],
)
# Latency, cost, tokens, and the model that answered are recorded in Logs
Logs keeps every request for 90 days, refused ones included. Prompt and response content is logged by default and kept for 90 days; token usage and timing are always kept for billing, even when you turn content logging off. Four tabs break the traffic down by shape - Requests, Runs, Conversations and Jobs - and five built-in views (All, With a problem, Slow, Costly, Rated bad) get you to the requests that need attention.
ML observability vs. LLM observability
Traditional ML observability tracks model features, predictions, and data drift in batch. LLM observability (sometimes called AI observability or an ML observability platform) extends that to live, token-based inference - with prompt logging, per-request cost, and evaluation on stored responses. Both matter; an AI observability platform that handles the generative layer first will pay for itself quickly.
Every request you don't observe is a cost you can't explain and a regression you can't catch.
Next steps
Infere is built around LLM observability: Logs with Requests, Runs, Conversations and Jobs, Cost and usage, and evaluation in one place. Try it with any OpenAI-compatible SDK - no rewrites required.
Cost analytics are a core part of observability - see the true cost of agentic coding for a breakdown of where token spend goes across agentic tools.