If your agent traces are already in BigQuery or ClickHouse, you can analyze them where they are. On ClickHouse, traces usually land through the OpenTelemetry Collector's ClickHouse exporter, through ClickStack, or through a self-hosted Langfuse, which stores its traces in your ClickHouse. On BigQuery, Google ADK agents write every event to an agent_events table with the BigQuery Agent Analytics plugin. Each of these lets you query traces with SQL. Kubit queries the same tables in place, labels and scores every span with Polaris, visually groups runs by execution path (which tools ran, in what order) and writes its labels and scores back to a dataset or database you pick. We don't copy your data into a silo. Traces are retained in your full control.

Key facts

  • ClickHouse with OpenTelemetry: the OpenTelemetry Collector's ClickHouse exporter writes spans to an otel_traces table, one row per span with its trace ID, parent span, attributes and status (ClickHouse docs)

  • ClickStack: ClickHouse's own observability stack, with the ClickStack UI on top, ClickHouse for storage and querying, and OpenTelemetry for collection (ClickStack docs)

  • Self-hosted Langfuse: stores its traces in your ClickHouse, and Kubit reads the Langfuse v4 events_full table in place (Use Kubit with Langfuse)

  • BigQuery (Google ADK): the BigQuery Agent Analytics plugin writes agent events (LLM requests and responses, tool calls, tool errors, agent responses) to an agent_events table, with per-event views and a Looker Studio template or Looker Block on top (ADK docs)

  • Kubit: connects with a read-only BigQuery service account or a KUBIT user in ClickHouse, with nothing to install in your app (Connect BigQuery, Connect ClickHouse)

  • Where labels go: four KUBIT_ tables in a BigQuery dataset or ClickHouse database you pick, next to the traces (Bring Your Own Warehouse)

What do ClickHouse and BigQuery give you for agent traces?

Both give you SQL over every span, and a place to open one run.

On ClickHouse, the OpenTelemetry Collector has a ClickHouse exporter. It writes each span as a row in otel_traces, with the trace ID, span ID, parent span ID, span attributes, duration and status code, so you can rebuild a run and filter it with SQL. ClickStack, ClickHouse's observability stack, uses the same exporter and adds the ClickStack UI to search and correlate logs, traces and metrics.

If you self-host Langfuse, your traces are already in ClickHouse. Langfuse traces and scores every run, and you open a trace in the Langfuse UI.

On BigQuery, Google ADK agents use the BigQuery Agent Analytics plugin. It writes each agent event, such as an LLM request, a tool call or a tool error, as a row in an agent_events table, with the trace and span IDs, latency and error message. The plugin creates a view per event type, and Google provides query recipes, a Looker Studio template and a Looker Block for dashboards.

What does Kubit add on top of the same tables?


ClickHouse with OpenTelemetry or ClickStack

Self-hosted Langfuse on ClickHouse

BigQuery with Google ADK

Kubit, on the same tables

Where traces live

otel_traces

Langfuse events_full

agent_events

Stay where they are

Open one run

ClickStack UI

Langfuse UI

Your own query or Looker dashboard

Activity

Query with SQL

Yes

Yes, it's ClickHouse

Yes, plus a view per event type

Yes, labels sit in your dataset or database

Label and score every span

Not covered in the exporter or ClickStack docs

Langfuse scores

Not covered in the plugin docs

Polaris, every span, no sampling

Visually group runs by execution path

Not covered

Not covered

Not covered

Flows, one Sankey for all runs

Join to user behavior

Your own SQL

Your own SQL

Your own SQL

Funnels, retention and cohorts

"Not covered" means the pages linked above don't describe it, not that it can't be built.

How Kubit reads traces in BigQuery or ClickHouse

From trace tables in BigQuery or ClickHouse to Flows: how Kubit reads agent traces in place, with what the built-in views give next to what Kubit adds.
  1. You create an identity for Kubit. On BigQuery it's a Kubit service account with BigQuery User, BigQuery Job User and BigQuery Data Viewer, and a JSON key. On ClickHouse it's a KUBIT user with a read role and a write role, a small KUBIT_DB database, and Kubit's IP ranges in your IP access list.

  2. You create a workspace with the origin that matches your traces. Use Google ADK for agent_events in BigQuery and Langfuse for self-hosted Langfuse traces in ClickHouse, then apply the preset. For OpenTelemetry traces in either warehouse, use the Warehouse origin and map the trace table in the Modeler. Nothing changes in your app.

  3. Polaris labels and scores every span, in under a second per span. An Exception is a call where execution failed. A Misstep is a call that returned OK while the agent did the wrong thing, such as wrong_tool or wrong_parameter.

  4. Labels go back to your warehouse, in KUBIT_FACT_TRACES, KUBIT_FACT_SPANS, KUBIT_FACT_CONVERSATIONS and KUBIT_FACT_TRACE_OUTCOMES. On BigQuery the service account needs BigQuery Data Editor on that dataset, in the same region as your agent events. On ClickHouse you pick a database.

  5. Flows, Triggers and behavior reports read the labeled runs: every run visually grouped by execution path, a metric compared before and after a model upgrade or across user segments, and runs joined to the user tables already in the warehouse.

Does Kubit copy my traces?

Where your agent data lives with Kubit: one warehouse with the KUBIT_ tables on top, and the four warehouses Kubit reads.

No. Kubit signs in with the identity you create, reads only the tables you grant and writes only to locations it owns: the Polaris results location and, on ClickHouse, the KUBIT_DB database. Every table it creates starts with KUBIT_, so it doesn't collide with yours. See Bring Your Own Warehouse.

What if I use Langfuse Cloud?

Langfuse Cloud keeps traces in Langfuse's own storage, which Kubit can't read in place. Add Kubit next to Langfuse with the agent plugin instead. It adds Kubit's span processor next to the Langfuse processor, so Langfuse keeps receiving every span and Kubit gets a copy. Steps: Use Kubit with Langfuse.

What if my traces aren't in BigQuery or ClickHouse yet?

Point the stock OpenTelemetry exporter, or the Kubit SDK for Python or Node, at Kubit's OTLP endpoint with a short OTel Collection setup, and Kubit writes the traces to your BigQuery or ClickHouse. From there everything in this post applies. Setup: Integrate with manual OpenTelemetry and Bring Your Own Warehouse.

What about Snowflake, Databricks and Redshift?

Kubit reads MLflow traces in Databricks and Cortex Agents traces in Snowflake the same way. See Agent analytics on traces already in Snowflake, Databricks or BigQuery. Redshift isn't supported for agent traces yet.

When are the built-in views enough?

If you mostly open one run at a time to debug it, or chart latency and error counts, ClickStack, the Langfuse UI and the ADK Looker dashboards do that job. Kubit answers the next question, which is how many runs had a Misstep while every call returned OK, which execution paths they took and what users did afterwards.

How to try it

Agent Analytics is in early access. Join the waitlist or book a time with Alex. Setup guides: Connect BigQuery · Connect ClickHouse · Use Kubit with Langfuse · Google ADK preset.

Read next: Agent analytics on traces already in Snowflake, Databricks or BigQuery · How to analyze agent traces without sending them to a vendor · What is Kubit?

FAQ

Can I analyze agent traces that are already in ClickHouse?

Yes. If the OpenTelemetry Collector or ClickStack writes your spans to ClickHouse, Kubit reads them in place through a Warehouse workspace, with the trace table mapped in the Modeler. Polaris labels and scores every span, and the labels are written back to a ClickHouse database you pick.

Can Kubit read self-hosted Langfuse traces?

Yes. A self-hosted Langfuse stores its traces in your ClickHouse, and Kubit reads the Langfuse v4 events_full table in place through a Langfuse workspace, with nothing changed in your app. Langfuse Cloud traces go through the agent plugin instead.

Can I analyze Google ADK traces in BigQuery?

Yes. The ADK BigQuery Agent Analytics plugin writes agent events to an agent_events table in BigQuery. Kubit reads that table in place through a Google ADK workspace and labels and scores every span with Polaris.

What access does Kubit need on BigQuery?

A read-only Kubit service account with BigQuery User, BigQuery Job User and BigQuery Data Viewer on the project, plus BigQuery Data Editor on the dataset where Polaris writes its labels, in the same region as your agent events.

Does Kubit copy my traces out of BigQuery or ClickHouse?

No. Kubit queries your traces directly in your warehouse and writes Polaris labels and scores to KUBIT_ tables in a location you pick. We don't copy your data into a silo. Traces are retained in your full control.

Which warehouses does Kubit support for agent traces?

Databricks, Snowflake, BigQuery and ClickHouse. Redshift isn't supported for agent traces yet.

Table of contents

Running agents in production?

The first cohort is closed. Join the waitlist for the next one. Your traces stay in your warehouse.

Summarize this post

Share