Skip to main content

who provides llm trace analytics

Summary

  • LLM trace analytics comes from three kinds of providers: open-source tracing projects such as MLflow, observability tools that ingest OpenTelemetry traces, and data platforms that store traces as tables you can query.
  • Trace analytics differs from trace debugging. Debugging opens one trace; analytics aggregates many of them into latency, token-usage, error and quality trends by user, session, tool or app version.
  • Pick a provider that keeps traces in an open format (OpenTelemetry) and lets you query them with SQL, so the questions you can ask aren't limited to prebuilt charts.
  • Databricks provides trace analytics through managed MLflow, which stores traces as Unity Catalog Delta tables, and Unity Gateway, which logs token counts, latency and requester for every model request to a system table.

who provides llm trace analytics

LLM trace analytics is offered by open-source tracing projects such as MLflow, by observability tools that accept OpenTelemetry traces, and by data platforms that keep traces as queryable tables. Databricks provides it through managed MLflow Tracing, with traces stored as Delta tables in Unity Catalog, and through Unity Gateway's usage logging for model traffic. If you need answers beyond a vendor's built-in charts, choose a provider that stores traces in an open format and lets you query them with SQL.

What is LLM trace analytics?

A trace records one request through an LLM application: the input, the output, and every intermediate step (model calls, tool calls, retrieval) with its inputs, outputs, latency and token usage. Debugging means opening one trace to find what went wrong. Trace analytics means aggregating many traces to answer operational questions:

  • Which steps account for most of the latency and token usage?
  • How often does each tool fail, and for which users or sessions?
  • Did a new prompt version change error rates or quality scores?
  • Which teams or projects drive model spend?

What to look for in a trace analytics provider

Capability Why it matters
Open trace format OpenTelemetry-compatible traces can be ingested from any instrumented service and exported to other tools.
SQL access Ad hoc questions need queries, not only prebuilt dashboards.
Span-level metrics Latency, token counts and status per step show where time and cost go.
Quality signals on traces Scores from LLM judges and human feedback stored on traces let you trend quality next to cost.
User, session and tag dimensions Grouping by user, session, environment or app version turns raw traces into answers.
Retention without hard caps Trend analysis needs history, not a rolling window of recent traces.
Access control Traces can contain prompts and responses with sensitive data, so permissions must be enforceable.
Joins with business data Linking traces to customer, product or cost tables explains why patterns occur.

How Databricks provides LLM trace analytics

MLflow traces in Unity Catalog. MLflow on Databricks is the same open-source MLflow, fully managed. Databricks recommends storing traces in Unity Catalog for new and production workloads. Binding an experiment to a Unity Catalog trace location creates four Delta tables (<table_prefix>_otel_spans, _otel_logs, _otel_metrics and _otel_annotations) in OpenTelemetry format, with no per-experiment trace limit and access governed by Unity Catalog schema and table permissions. You can query them through a Databricks SQL warehouse, build AI/BI dashboards and alerts on them, or process them with Spark.
From Python, mlflow.search_traces() reads traces stored in a Unity Catalog schema, with filters that include token count, execution time, span attributes, feedback and tags:

import os
import mlflow

os.environ["MLFLOW_TRACING_SQL_WAREHOUSE_ID"] = "<SQL_WAREHOUSE_ID>"
heavy = mlflow.search_traces(
    locations=["my_catalog.my_schema"],
    filter_string="trace.token_count > 1000",
)

Natural-language analysis. Genie Code reads everything logged to an MLflow experiment. Ask it to compute latency percentiles, track error rates over time, analyze token usage and costs, or compare performance across time periods. In the Traces tab itself, a summary above the trace list aggregates assessment metrics such as averages or pass/fail rates across the visible traces.
Unity Gateway usage logs. Unity Gateway logs requests to its model and MCP services in the system.ai_gateway.usage system table. For model requests, that includes token counts, latency, the requester and request tags. Account admins can create a built-in usage dashboard, and request tags let you attribute usage to a project:

SELECT
  request_tags['project'] AS project,
  COUNT(*) AS request_count,
  SUM(total_tokens) AS total_tokens
FROM system.ai_gateway.usage
WHERE request_tags['project'] IS NOT NULL
GROUP BY request_tags['project']
ORDER BY total_tokens DESC;

Inference tables, enabled per model service, log full request and response payloads to Unity Catalog Delta tables for troubleshooting and audit.

Application traces or gateway logs?

Source What it records Use it for
MLflow traces Every step inside your application, with inputs, outputs, latency, tokens and assessments Step-level performance, tool behavior and quality trends
Unity Gateway usage table Each request to a governed model or MCP service, with tokens, latency, requester and tags Cross-application usage, adoption and spend attribution
Inference tables Raw request and response payloads for a model service Troubleshooting responses and auditing content

The layers complement each other. Application traces explain why a request behaved as it did, and gateway logs show usage across every application that calls the same models.

FAQs

Can I analyze traces with SQL?

Yes, when traces are stored in Unity Catalog. They're Delta tables in OpenTelemetry format, so you can query them through a SQL warehouse and join them with other tables.

Can traces from non-MLflow clients be analyzed the same way?

Yes. Third-party OpenTelemetry clients can write to the Unity Catalog trace tables, and those traces appear in the linked MLflow experiment as long as they have a root span.

Who can see trace data in Unity Catalog?

Access is managed through Unity Catalog schema and table permissions. Users with access to the tables can view all traces stored in them, regardless of which experiment the traces belong to.

Who can query the Unity Gateway usage table?

By default, viewing or querying system.ai_gateway.usage requires both account and metastore admin roles. Admins can grant access to other users, groups and service principals.

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