tools for llm observability
Summary
- LLM observability tools explain why an LLM app or agent produced a given answer, by capturing traces of every step and attaching quality assessments, feedback and context to them.
- Build the stack on OpenTelemetry so instrumentation, transport and storage stay swappable, and add an open-source tracing and evaluation layer such as MLflow on top.
- MLflow describes its tracing as a fully OpenTelemetry-compatible LLM observability solution: it can export traces to any OpenTelemetry backend, or to that backend and MLflow at once through dual export.
- Observability is what lets you debug failures you didn't predict. Monitoring watches the signals you already know to watch.
- On Databricks, OpenTelemetry traces from MLflow or any OTLP client can land as Delta tables in Unity Catalog, governed and queryable with SQL.
tools for llm observability
LLM observability tools let you explain why an LLM application or agent gave a particular answer. They capture a trace of every step (the prompt, retrieved documents, tool calls, the response), attach quality scores and user feedback to it, and keep the data queryable. Build the stack on OpenTelemetry so each layer stays replaceable, and use an open-source tracing and evaluation layer such as MLflow on top. Then the same traces can feed the observability backend you already run and the judges that score answer quality.
What is LLM observability?
Classic observability rests on logs, metrics and traces. LLM systems need two more things: the content of each step, and an assessment of whether the output was any good. A request can return in time, without errors, and still be wrong.
| Pillar | What it captures | Question it answers |
|---|---|---|
| Traces | Every step of a request, with inputs and outputs | What happened on this request? |
| Metrics | Latency, tokens and errors over time | Is something trending the wrong way? |
| Assessments | LLM-judge scores and code-based checks | Was the answer correct, grounded and safe? |
| Feedback | Ratings and corrections from users and experts | Did people find it useful? |
| Context | User, session, app version, environment | Who was affected, and by which version? |
Monitoring watches the signals you already know matter. Observability is having enough recorded detail to answer the question you didn't think to ask before the incident.
The tool stack, layer by layer
- Instrumentation. SDKs that turn app steps into spans. MLflow autologs agent frameworks such as LangChain, LangGraph, LlamaIndex and DSPy, and offers a decorator for custom code. OpenTelemetry SDKs cover other languages.
- Conventions. The OpenTelemetry GenAI semantic conventions define spans, metrics and events for GenAI clients, so different tools describe a model call the same way.
- Transport. OTLP, the OpenTelemetry protocol, carries traces from apps to collectors and backends.
- Backend. Where traces are stored, searched and displayed. An MLflow server accepts OTLP traces at
/v1/traces, so services in Java, Go or Rust can report into it. - Quality. LLM judges, evaluation datasets and feedback that attach to traces.
- Analysis. Dashboards, alerts and SQL over the stored traces.
What to look for across the stack: no proprietary agent you can't remove, traces you can export, quality data stored on the trace itself, and access control over prompts and responses.
Wiring MLflow into an OpenTelemetry stack
MLflow's tracing is described as "fully compatible with OpenTelemetry". To send traces to an OpenTelemetry collector, set the standard exporter variables before any trace starts. Turning on dual export also keeps a copy in MLflow.
import os
import mlflow
os.environ["OTEL_EXPORTER_OTLP_TRACES_ENDPOINT"] = "http://localhost:4317/v1/traces"
os.environ["OTEL_SERVICE_NAME"] = "support-agent"
os.environ["MLFLOW_TRACE_ENABLE_OTLP_DUAL_EXPORT"] = "true"
mlflow.set_tracking_uri("http://localhost:5000")
mlflow.set_experiment("support-agent")
with mlflow.start_span(name="answer") as span:
span.set_inputs({"question": "How do I reset my password?"})
span.set_outputs({"answer": "Use the reset link on the sign-in page."})
To emit gen_ai.* attributes in place of MLflow's own attribute names, MLflow documents MLFLOW_ENABLE_OTEL_GENAI_SEMCONV. MLflow can also export the mlflow.trace.span.duration histogram as an OpenTelemetry metric.
How Databricks approaches LLM observability
MLflow on Databricks is the same open-source MLflow, managed, so the instrumentation carries over. Databricks treats the traces themselves as governed data:
- Traces in Unity Catalog. Databricks recommends storing MLflow traces in Unity Catalog tables for new and production workloads. They're stored in OpenTelemetry format as Delta tables (spans, logs, metrics and annotations), bound to an MLflow experiment that stays the UI entry point.
- Any OTLP client. Third-party OpenTelemetry clients can send traces to the workspace endpoint
/api/2.0/otel/v1/traceswith theX-Databricks-UC-Table-Nameheader. Traces appear in the linked experiment only if they have a root span. - Analysis on the platform. Trace tables can be queried from a SQL warehouse and used in AI/BI Dashboards, alerts, Spark and Genie Code. Access follows schema and table permissions.
- Quality on the same records. Built-in MLflow judges run on Databricks-hosted LLMs, and the Review App collects expert feedback on traces.
- Model-call metrics. Unity Gateway records tokens and latency for every governed model request in
system.ai_gateway.usage.
A few documented limits are worth knowing up front: an experiment can be bound to a Unity Catalog trace location only when it's created, Knowledge Assistant and Supervisor Agent don't support these traces, and individual traces are deleted with SQL, not the UI. See Store OpenTelemetry traces in Unity Catalog.
FAQs
How is LLM observability different from traditional observability?
Traditional observability shows whether a service is healthy. LLM observability also records what each step said and scores whether the answer was right, because a fast, error-free response can still be wrong.
Can I keep my existing observability backend?
Yes. MLflow exports traces over OTLP to OpenTelemetry-compatible backends, and dual export sends the same traces to MLflow as well.
Is MLflow an LLM observability tool?
Yes. MLflow describes MLflow Tracing as "a fully OpenTelemetry-compatible LLM observability solution for your agents and LLM applications," and it's open source under Apache-2.0.
Which languages can report traces?
MLflow supports Python, TypeScript/JavaScript and Java, and its server accepts OTLP traces from other languages such as Go and Rust.
The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.