Skip to main content

platforms for genai trace observability

Summary

  • A GenAI trace observability platform records a span for every model call, retrieval and tool call, then lets you search, measure and score those traces. The ones worth adopting are built on OpenTelemetry, so instrumentation and storage stay independent.
  • A complete setup has four layers: instrumentation (SDKs and autologging), collection (an OTLP endpoint), storage you can query and govern, and quality signals such as human feedback and LLM-judge scores attached to traces.
  • MLflow Tracing is the open-source option. It ingests and exports traces in the OpenTelemetry GenAI semantic conventions, and the MLflow server exposes an OTLP/HTTP endpoint at /v1/traces.
  • On Databricks, traces are stored in Unity Catalog Delta tables in OpenTelemetry format, so the governance, SQL and dashboards you already use for data also apply to agent telemetry.

platforms for genai trace observability

Pick a platform that treats traces as OpenTelemetry data first and as a UI second. GenAI apps tend to fail in the middle of a request: a retriever returns the wrong document, a tool gets bad arguments, a model call stalls. You only see that if every step is captured as a span and kept somewhere you can query later. MLflow Tracing is the open-source platform built for this job, and its docs describe it as "fully OpenTelemetry-compatible".

What is GenAI trace observability?

Trace observability means reconstructing what happened inside one request and spotting patterns across many. MLflow defines tracing as an observability technique that "captures the complete execution flow of a request through your application". For a GenAI app, that flow covers prompts, model calls, retrieval, tool calls and sub-agents, with latency and token usage recorded at each step.
OpenTelemetry is what keeps this portable. MLflow's docs call it "a CNCF-backed project that provides vendor-neutral observability APIs and SDKs", and MLflow calls the OpenTelemetry GenAI semantic conventions "the industry standard for describing AI and LLM telemetry".

The four layers of a trace observability platform

Layer What it does What to look for
Instrumentation Creates spans inside your app Autologging for your frameworks, manual spans, Python and TypeScript SDKs
Collection Receives spans from services An OTLP endpoint, so any OpenTelemetry-instrumented service can send traces
Storage and query Keeps traces for analysis Long retention, SQL or SDK search, access controls on prompt data
Quality signals Records whether the output was good Human feedback and LLM-judge scores attached to the trace

When you evaluate platforms, check each layer separately. A tool with a strong viewer but closed storage limits what you can do with traces later. A tool with open storage but no OpenTelemetry ingestion forces you to re-instrument services that already emit spans.

How open-source MLflow handles OpenTelemetry

MLflow both ingests and exports traces in the OpenTelemetry GenAI semantic convention format. To collect spans from a service that already uses OpenTelemetry, start an MLflow server with a SQL-based backend store and point the standard OTLP exporter variables at it, passing the experiment ID in the x-mlflow-experiment-id header:

# Starts the server with an SQLite backend store
mlflow server

# In the instrumented application
export OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://localhost:5000/v1/traces
export OTEL_EXPORTER_OTLP_TRACES_HEADERS=x-mlflow-experiment-id=123

The docs note that the MLflow server supports only the OTLP/HTTP endpoint today, not OTLP/gRPC. Going the other direction, traces generated by the MLflow SDK can be exported to any OpenTelemetry-compatible backend, and dual export sends them to MLflow and another backend at the same time. That lets an existing observability stack keep its service-level view while MLflow holds the GenAI-specific detail.

How Databricks approaches trace observability

On Databricks, MLflow stores traces in Unity Catalog in OpenTelemetry format, bound to an MLflow experiment. Setup creates four tables with a prefix you choose: <table_prefix>_otel_spans, <table_prefix>_otel_logs, <table_prefix>_otel_metrics and <table_prefix>_otel_annotations. Because the format is OpenTelemetry, third-party OTel clients can write to the same tables through the Databricks-hosted OTLP collector endpoint, and traces with a root span appear in the linked experiment. Custom OTel instrumentation that sends traces to Databricks uses the OTel tracing preview, which must be enabled in the workspace.
Once traces are tables, observability works like the rest of your data:

  • Dashboards. The MLflow experiment UI includes native observability dashboards for traces in Unity Catalog, covering trace volume, errors, latency, token usage and cost. Custom AI/BI Dashboards can query the same tables.
  • Governance. Traces inherit Unity Catalog access controls, from catalog and schema permissions to column masking and row-level filtering. That matters because prompts often contain sensitive data.
  • Analysis. Query traces with SQL through a SQL warehouse, or ask questions in natural language with Genie Code.
  • Gateway telemetry. Unity Gateway observability tracks cost, usage, performance and access for AI services from one control plane, backed by Unity Catalog system tables.

Read Store OpenTelemetry traces in Unity Catalog and the Databricks blog on OpenTelemetry traces in Unity Catalog.

FAQs

Do I need OpenTelemetry to use MLflow Tracing?

No. MLflow's own SDK and autologging create traces directly. OpenTelemetry matters when you want to collect spans from services that are already instrumented, or export MLflow traces to another backend.

Can MLflow send traces to an existing observability backend?

Yes. MLflow traces follow the OpenTelemetry trace spec and can be exported over OTLP to compatible backends, or dual-exported to MLflow and another backend at once.

Does the MLflow server accept OTLP over gRPC?

Not yet. The MLflow docs say the server currently supports only the OTLP/HTTP endpoint.

How is prompt data protected on Databricks?

The Databricks blog says trace ingestion doesn't apply special PII handling. Instead, traces live in Unity Catalog, where fine-grained access controls, column masking and row filters restrict access. MLflow also documents how to redact PII data from traces.

The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.