Skip to content

That's just a taste — their profile full of gems!

Visit profile
User avatar
Stephen Williams
July 24881

LLM Observability in Production

I keep seeing teams treat LLM observability like a nice extra you add after launch.

That’s backwards.

If you’re putting LLMs into production in 2025, observability is part of the product. Not a dashboard project. Not an “AI strategy” slide. Actual instrumentation that tells you what happened, why it happened, how much it cost, and whether the result was any good.

The prototype phase hides a lot of sins. In a notebook, with a handful of clean prompts, almost anything can look smart. Production is where the mess shows up: weird inputs, broken retrieval, runaway token usage, latency spikes, tool failures, inconsistent outputs, and users finding edge cases faster than your team ever will.

That’s why the basic unit of LLM reliability is no longer just logs. It’s a trace.

A good trace gives me the full path of a request from user input to final response. Then I want spans for each step: retrieval, model call, tool use, post-processing, guardrails, whatever else is in the chain. And for each generation, I want the exact prompt, model version, parameters, response, latency, and token usage.

If it’s RAG, I also want to see the retrieved context. Otherwise you’re guessing. Half of “the model is hallucinating” is really “the retrieval stack handed it garbage” or “the prompt assembled the wrong context.”

That distinction matters.

A lot of teams still lump every bad output under “LLM quality issues,” when the failure might be in:

  • retrieval
  • prompt construction
  • tool orchestration
  • model routing
  • timeout/retry behavior
  • downstream parsing

Without observability, all of that gets flattened into vibes.

And this is the part I think people underestimate: subjective quality needs instrumentation too. Latency and token counts are easy. User trust is not. If you’re not capturing feedback loops — thumbs up/down, task completion, human review, regression evals — you’re only monitoring cost and speed, not usefulness.

That’s not observability. That’s cloud billing with extra steps.

The practical stack here is pretty straightforward. Instrument early. Standardize event schemas. Attach metadata aggressively: session IDs, customer IDs, model versions, prompt versions, experiment flags. Use OpenTelemetry if you can, because vendor lock-in on monitoring is a dumb way to create more work for yourself later.

Tools like Langfuse, LangSmith, and Maxim AI are useful because they bring tracing, evals, and analytics into one workflow. I’m less interested in which logo wins and more interested in whether a team can answer basic production questions quickly:

Which prompt version caused the drop in quality?
Why did cost per successful task double last week?
Which retrieval source is poisoning answers?
Which model is slower but not actually better?
What broke in the chain when the response looked fine syntactically but failed the user?

If you can’t answer those in minutes, you don’t really have production visibility.

The bigger shift is mental. Stop chasing the fantasy of a “perfect model.” What wins in production is a disciplined system around imperfect models: tracing, evals, alerts, feedback loops, and clear failure analysis.

That’s what turns LLM work from demo culture into engineering.

So my rule is simple: if an LLM feature matters enough to ship, it matters enough to observe.

Otherwise you’re not running an AI product. You’re just paying to debug a black box live in front of customers.

#llm#observability#mlops#aiengineering#rag#productionai#langfuse#langsmith#opentelemetry
Like
Dislike

95

27

Add a comment...