DatabricksAdam Gurary, Alkis Polyzotis, Vishnu KannanAnnouncement
Introducing Unity Gateway Insights
Summary
Unity Gateway Insights is a new Databricks feature that automatically analyzes millions of coding agent traces to identify token waste. It uses Genie to examine traces alongside business data and ontology, surfacing recurring MCP errors, simple tasks running on expensive frontier models, and repeated workflows worth codifying as shared skills. At Databricks, trace analysis revealed that fixing seven small MCP server bugs recovered an estimated $1.2M in annual costs. Insights requires Unity Gateway as the control plane, the ug CLI for automatic OpenTelemetry tracing, and a governed Delta table in Unity Catalog. It ranks findings by token cost and links each to example sessions for further investigation.
Context
Teams often start cutting AI costs with budgets or open-source models, but agent traces can reveal other savings opportunities. At Databricks, trace analysis showed no performance gain from upgrading from Opus 4.8 to Opus 5, fixing common MCP errors recovered an estimated $1.2M a year, and simple prompts going to expensive models led to adopting Smart Routing.
Approach / What changed
Unity Gateway Insights automatically uses Genie to analyze millions of agent traces alongside business data and ontology, sampling sessions, grouping them into workstreams, and checking each for failing MCP tools, bloated context, frontier models on simple tasks, and repeated workflows, then ranking findings by token cost.
Takeaways
Fixing seven small bugs in MCP servers recovered an estimated $1.2M in annual costs from wasted tokens and 12,000 hours of engineers waiting on agents.
Insights rates task complexity in frontier-model sessions and counts routine ones, identifying sessions that Smart Routing can send to a cheaper model.
A workflow counts as recurring when it appears in at least three sessions or across two engineers, and codifying it as a shared skill stops paying for agents to work out the steps again each session.
FAQ
What kinds of waste does Insights detect?
Insights checks each workstream for failing MCP tools, bloated context, frontier models on simple tasks, and repeated workflows, then ranks what it finds by the tokens at stake.
What does Insights need that a standalone gateway cannot provide?
Insights requires Unity Gateway as the control plane for coding agent requests, the ug CLI to turn on OpenTelemetry tracing automatically, a unified trace table in Unity Catalog, Genie with Genie Ontology for business context, and Databricks SQL for scale.
How does Insights handle sensitive data in traces?
Traces hold prompts, code, and tool output, so only the table's owner can query it until admins grant access with Unity Catalog grants and row filters. Insights reads the table in place, so you never export your most sensitive data to analyze it.
Source and freshness
- Source
- databricks.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.