--- title: "How to Choose the Best Observability Tools for LLM Applications in 2027 (With OpenTelemetry Examples)" published: True description: "LLM observability is two problems, not one. A practical look at tracing LLM apps, tracking cost and quality, and letting AI help with operations safely." tags: observability, llm, opentelemetry, devops canonical_url: --- If you search for the best observability tools for LLM applications, you will find plenty of lists. Most of them skip the question that decides whether a tool fits you: which problem are you actually solving?
"LLM observability" covers two things. One is monitoring applications that contain a model. The other is using a model to help run your infrastructure. They need different things from a tool, and mixing them up is how teams end up with an impressive demo and an unusable pilot. This post walks through both, with working instrumentation code, and shows how to evaluate tools against your own systems.
Problem 1: monitoring an LLM application
A classic request is a deterministic path through code. An LLM request is a chain: build a prompt, retrieve context, call a model, maybe call tools, maybe loop. Any step can degrade without throwing an error. So the questions change from "did it fail?" to "why was this answer wrong, slow or expensive?"
Step 1: capture the right spans
Start by wrapping the steps that matter in OpenTelemetry spans. The gen_ai.* attribute names below follow the OpenTelemetry GenAI semantic conventions, which are still evolving, so confirm them against the current spec. The rag.* attributes are custom ones I chose to illustrate context worth recording.
from opentelemetry import trace tracer = trace.get_tracer("support-assistant") def answer(question, retriever, llm, model_name): with tracer.start_as_current_span("rag.answer"): with tracer.start_as_current_span("rag.retrieve") as span: docs = retriever.search(question, k=5) span.set_attribute("rag.documents.count", len(docs)) span.set_attribute("rag.documents.oldest_age_days", max(d.age_days for d in docs)) with tracer.start_as_current_span(f"chat {model_name}") as span: span.set_attribute("gen_ai.operation.name", "chat") span.set_attribute("gen_ai.request.model", model_name) resp = llm.chat(question=question, context=docs) span.set_attribute("gen_ai.usage.input_tokens", resp.usage.input_tokens) span.set_attribute("gen_ai.usage.output_tokens", resp.usage.output_tokens) return resp.text Now a bad answer is debuggable. Maybe retrieval returned documents that were months old. Maybe the input token count doubled after a template change. Those are findings, not guesses.
Step 2: treat cost as a metric
Tokens are metered, and they scale with behavior, not traffic. A prompt tweak or an agent stuck in a loop can double your spend while request counts stay flat. Export token usage per request and per model, and alert on cost per request the way you alert on latency. A tool that can only show you total spend at month end is not doing observability for LLMs.
Step 3: attach quality to the same traces
Latency and errors do not tell you whether an answer was good. You need evaluation: user feedback, automated scoring, or an LLM judging outputs against a rubric. The part that matters when choosing a tool is whether those scores live on the traces, so you can ask for "slow and low-scoring" in one query rather than joining two systems.
A note on privacy: prompts and completions are the most useful and the most sensitive data in a trace. Decide on redaction, sampling and retention before you record content.
Why OpenTelemetry
Instrumenting with OpenTelemetry keeps you vendor-neutral. You can send the same data to an open-source backend, a full-stack observability vendor or an LLM-native tool, and change your mind later without touching application code. If a tool makes you adopt a proprietary SDK for basic tracing, treat that as a real cost.
Problem 2: using AI to operate your systems
The other half is asking a model to help with incidents. The common failure is pointing a general model at raw logs and getting a fluent, confident, wrong explanation. The model does not know your entities, how they relate or what your metrics mean.
What improves results is context, not a bigger model: services and their dependencies, hosts and what runs on them, metrics with defined meanings, and the changes that preceded the incident. When you evaluate a tool, test this directly. Pick a past incident where the real cause is two hops from the symptom, such as slow checkout caused by a saturated connection pool in a database owned by another team, and see whether the tool walks the dependency chain and shows evidence, or just rewords the symptom.
Giving an agent safe access
If the AI can act, you need layered controls. Look for an agent that runs as a specific role with only that role's permissions, sees only the data that role may see, can call only granted tools, asks for confirmation before changing state, and writes a full audit trail. Risky actions should run in an isolated environment first. Ask vendors about these early. They rarely appear in demos, and they are what a security review will ask about.
Choosing among the options
The market falls into three broad groups, and the lines are blurring. This is a map, not a ranking, and products change quickly, so verify details before you decide.
- Open-source and open-standard stacks (OpenTelemetry plus ecosystems like Grafana's) give flexibility and no lock-in, with integration and operations work on your side.
- Established full-stack observability vendors (Datadog, Dynatrace and similar) bring breadth and existing deployments; check how deep their AI features go and how costs scale.
- LLM-native tools (Langfuse, LangSmith, Arize and similar) are strong on tracing and evaluation for models and agents, and are typically narrower on the rest of your infrastructure.
If your pain is mostly LLM apps, start from an LLM-native or open-standard setup. If it is mostly operating a big estate with AI help, weight the system model and controls most heavily. If it is both, expect to combine tools and rely on OpenTelemetry to keep that manageable.
Run a pilot on a real incident
Replay an incident that cost your team a day. See what the tool finds on its own, whether you can inspect its reasoning, and what it does when it lacks data. A tool that admits uncertainty beats one that always sounds sure. Then ask about permissions, data exposure and auditability while you still have the vendor's attention.
By 2027 the models will be better and the instrumentation more standardized. The differences that remain will be the same ones that always mattered: how well the platform understands your systems, how honest it is about what it does not know, and how safely it lets you act on what it finds.
What are you using to trace LLM apps in production? Share what worked and what did not in the comments.