> ## Documentation Index
> Fetch the complete documentation index at: https://www.dataframer.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Traces and events in Unity Catalog

> DataFramer reads your Databricks traces and product events where they are and keeps only metadata and a pointer to each row.

When your AI traces or your product events are in Databricks, DataFramer reads them in your Unity Catalog. It does not copy their content into its own storage. For each trace or event it keeps identifiers, times and the fields it lists and filters on, plus a pointer to the row in your table. Whenever a page, a findings run or a judge needs the content, DataFramer reads the row from your SQL warehouse at that moment, with the service principal you gave it.

## Prerequisites

* **A service principal** with `USE CATALOG` on the catalog, `USE SCHEMA` on the schema and `SELECT` on the tables DataFramer reads, and **Can use** on a SQL warehouse:

  ```sql theme={null}
  GRANT USE CATALOG ON CATALOG main TO `<service-principal-application-id>`;
  GRANT USE SCHEMA ON SCHEMA main.agents TO `<service-principal-application-id>`;
  GRANT SELECT ON TABLE main.agents.prod_otel_spans TO `<service-principal-application-id>`;
  ```

  Give **Can use** on the warehouse from its **Permissions** tab. DataFramer signs in with the principal's OAuth secret.
* **A SQL warehouse.** DataFramer queries it each time someone opens a trace or an event, so a serverless warehouse, which starts in seconds, keeps those pages responsive. Every query is limited by time on the table, so it reads only the files around the rows it needs.
* **Network access.** If your workspace uses IP access lists, allow DataFramer's address `35.83.1.227`. In a [customer-hosted deployment](https://www.dataframer.ai/docs/deployment.md#customer-hosted) your data plane connects instead: allow its outbound address.

## Traces

DataFramer reads OpenTelemetry span tables:

* the `<prefix>_otel_spans` table that MLflow tracing to Unity Catalog and Zerobus Ingest write. Agents that run outside Databricks can send their traces to Zerobus Ingest over OTLP, which writes the same table;
* the unified trace table of Unity AI Gateway.

To connect one, add a project and choose **Databricks**, as described in [Connect your traces](https://www.dataframer.ai/docs/connect-traces.md). A Databricks project works at trace level: one datapoint is one trace. A trace is imported once its root span has finished for 10 minutes, so its other spans have landed.

A trace with more than 5,000 spans is skipped, and the import says so. You cannot build a generation seed dataset from these traces, because that would copy their content out of your table.

## Events

A [Databricks warehouse import](https://www.dataframer.ai/docs/user-signals/warehouse-events.md) keeps events in your table too. For each event DataFramer stores its name, ids and time, the journey and user keys and outcome ids derived from it, and the properties you list under **Sources → Fields → Event properties copied to DataFramer**. Conditions, funnels and charts can filter only on copied properties. When you add your first Databricks import, the list starts with every property your dashboards and outcome conditions already use. Edit it there at any time; a change applies to stored events within minutes.

Opening an event in Live Events or on a journey reads the rest of it from your table.

## When a row changes or is deleted

DataFramer records a fingerprint of every row it points to. If the row has been deleted, or no longer matches, DataFramer says so instead of showing other content: an event shows only its copied properties with the reason, and a trace shows why it cannot be loaded. Findings runs and judges skip such traces and report how many they skipped.

## What DataFramer stores

* **Results it derives**: findings, root causes, judge scores and reasoning, the passages they quote as evidence, and Review Copilot conversations. In a DataFramer-hosted deployment these are stored in DataFramer; in a customer-hosted deployment, in your own account, as for any other content.
* **Its own model calls on your content** are traced without their prompts and completions: only the model, token counts and cost.
* **Nothing else** of a trace or an event: no spans, no rendered text, no properties you did not list.

## Next steps

> [card] [Connect your traces](https://www.dataframer.ai/docs/connect-traces.md)
>
> Add a Databricks trace project

> [card] [Warehouse events](https://www.dataframer.ai/docs/user-signals/warehouse-events.md)
>
> Import product events from a Databricks table


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.