The honest view from inside technical leadership
Analysis

Agents

Field notes on how engineering leaders keep control of systems as AI changes how software gets built.

Observability · Analysis

Why AI Observability Companies Are Building Their Own Databases

LangChain, Braintrust, Pydantic, Arize and Oodle each built a database for observability. Agent traces and agent queries changed what the data layer has to do.

Line-art illustration of an AI agent trace tree feeding into a stack of database cylinders, representing AI observability companies building their own databases

AI observability companies are building their own databases because AI agents changed both sides of the workload. Agents write traces that are far larger and more deeply nested than ordinary telemetry, and agents are now among the heaviest readers of that data. In April 2024 LangChain explained why it chose ClickHouse to power LangSmith. In May 2026 it launched SmithDB, a database of its own.

LangChain is one of five. Braintrust built Brainstore. Pydantic went from ClickHouse to TimescaleDB to its own engine on Apache DataFusion. Arize built adb. Oodle moved its logs product off ClickHouse onto DenaliDB. None of these companies sells a database. Each decided the data layer was too close to the product to leave to someone else.

This piece traces why, using what each company has published about its own engineering. It is also the written companion to my conversation with Gaurav Maheshwari of Oodle AI on what AI observability actually has to catch.

Gaurav Maheshwari of Oodle AI on why an agent can return a convincing answer and still fail. Watch on YouTube or read the episode notes.

An AI agent trace records decisions, so it is orders of magnitude larger than an API trace

A conventional trace shows that a request hit a service, called another service, queried a database and returned. Each step is a span, and most spans hold timestamps, durations, identifiers and a few short strings.

Take an agent that handles product returns. It reads the customer’s message, pulls order history, checks the returns policy, calls inventory and payments, and may hand part of the job to another agent. Every step is still a span. Each one can now carry the full system prompt, the conversation so far, instructions passed to a sub-agent, raw tool responses and retrieved documents.

An engineer chasing a slow API call needs one duration. An engineer chasing a wrong agent answer needs to rebuild the whole conversation and follow information as it moved between model calls and tools. The database has to store all of that and query across it.

Braintrust founder Ankur Goyal put numbers on this in April 2026. In the workloads Braintrust sees, a typical span is about 50 KB and a typical trace about 10 MB. At p90, he wrote, spans reach tens of megabytes and traces tens of gigabytes (Braintrust, 6 April 2026). Those are Braintrust’s figures for its own customers, and they show the gap clearly.

Agent loops store the same conversation many times over

Most agents call a model in a loop. After each call, the model’s reply and any tool output are appended to the history, and the whole history goes into the next call. If a platform records the full input of every call, it records the early turns again and again.

In a simple five-step example where each step adds 10 KB, the conversation itself is 50 KB. The inputs recorded across the five calls add up to 150 KB (10 + 20 + 30 + 40 + 50). The overhead grows with the square of the conversation length.

Laminar, an AI observability company, reported cutting its trace storage by 20 times by storing repeated content once per trace and rebuilding conversations on read (Laminar, 19 May 2026). It did this on ClickHouse, using ClickHouse’s dictionary primitive to make the reconstruction joins fast. That detail matters for the rest of this piece. Existing databases can handle agent traces. The cost is the extra engineering a team has to build and own on top of them.

AI agents are now reading observability data as well as writing it

For most of observability’s history, the reader was an engineer looking at a dashboard after an alert. Coding agents now do part of that work. An agent investigating a production issue might search logs, pull failed calls, compare metrics against a deployment and check past incidents, all without a person typing each query.

Run 100 such investigations at once and the database faces a different demand. Each agent runs several queries before it reaches a conclusion. Some finish fast, others scan months of history, and the pattern is hard to predict. This raises a capacity question every platform team will recognise: provision for the peak and pay for idle compute, or use an architecture that allocates compute to the work in front of it. That question is why serverless query engines keep appearing in this story.

LangChain moved LangSmith from ClickHouse to SmithDB as agent traces outgrew it

LangSmith started on PostgreSQL. As customers sent more production telemetry and ran analytical queries, LangChain moved to ClickHouse, a column-oriented engine built for exactly that. Co-founder Ankush Gola described the choice in April 2024 (ClickHouse, 23 April 2024).

By May 2026 the workload looked different. Agent traces ran longer, nested deeper and carried large text fields that engineers wanted to search alongside structured metadata. LangChain built SmithDB in Rust on the Apache DataFusion query engine and the Vortex file toolkit. Traces live in object storage, and the ingestion and query services are stateless, so they scale by adding compute without owning local disks. LangChain reports that SmithDB makes core LangSmith experiences up to 15 times faster, with p50 latencies of 92 ms for trace tree loads and 400 ms for full-text search (LangChain, 13 May 2026). The page’s summary metadata gives the figure as 12 times. By October 2026 LangChain was publishing migration guidance for self-hosted customers moving from ClickHouse to SmithDB.

ClickHouse may well have been the right call for LangSmith in 2024. The workload changed, and the database requirement changed with it.

Braintrust measures what it costs an agent to get a correct answer

Braintrust announced Brainstore, its database for AI logs and evaluations, in March 2025 and made it the default for its hosted product on 31 March 2025 (Braintrust). It was designed for high trace volume, large text, fast availability of new data and queries over whole traces instead of single spans.

On 30 November 2026 Braintrust published a benchmark that asks a new question: how much does it cost a coding agent to answer a question about trace data correctly (Braintrust, 30 November 2026)?

Consider a question such as how many conversations had a failed payment and what those conversations cost. The failure sits in one span and the cost in another. If the platform cannot filter and aggregate across spans in a trace, the agent has to pull many records and do the arithmetic itself, spending tokens at every step.

Braintrust gave Claude Code and Codex the same 20 analytical questions over 4,000 traces through the MCP servers of four platforms.

Claude Code spent $0.78 per correct answer through Braintrust and $6.97 through Datadog

Model cost per correct answer, Claude Code (Opus 5.5, xhigh), US dollars

  • Braintrust0.78
  • LangSmith2.53
  • Langfuse4.32
  • Datadog6.97
Braintrust, Why we measure cost per task in agent observability, 30 November 2026. Vendor-published benchmark.

The Codex runs were much closer, between $0.12 and $0.21 per correct answer. These are Braintrust’s own results, and they measure the database, the MCP interface and the agent’s behaviour together. The metric is still worth adopting. If agents become major consumers of observability data, the cost of finishing an investigation belongs next to query latency in any evaluation.

Pydantic built its own engine to control how Logfire queries JSON

Pydantic runs Logfire, an observability platform. On the Latent Space podcast in February 2025, founder Samuel Colvin said Logfire started on ClickHouse, moved to TimescaleDB, then moved to Apache DataFusion, which he described as “kind of our own database” (Latent Space, 6 February 2025). He said ClickHouse’s JSON support at the time was a deciding factor, and acknowledged it has since improved.

The payoff showed up in January 2026. Adrian Garcia Badaracco of Pydantic described how Logfire now stores frequently queried JSON attributes separately, so a query for one field no longer reads whole documents. Pydantic reports some queries running more than 1,000 times faster, and some that used to time out finishing in under a second (Pydantic, 29 January 2026). That is a comparison against Logfire’s previous implementation. It shows the kind of workload-specific work a team can do once it owns the engine.

Arize built adb around the whole AI development loop

Arize introduced adb, a custom analytical datastore, in June 2025 (Arize, 25 June 2025). Co-founder Jason Lopatecki wrote that observability has a habit of producing new databases, and that building one from scratch is rarely the right path for a startup. Arize did it anyway to sustain real-time ingestion of terabytes a day alongside fast ad-hoc analysis.

Arize treats the database as part of how AI systems improve, beyond storing telemetry. Evaluation results get updated, datasets are pulled into experiments and feedback is analysed, all against the same store. Arize does not describe adb as a migration away from ClickHouse. It is a further example of an observability company deciding the data layer is product.

Oodle moved its logs product from ClickHouse to DenaliDB, a serverless engine

Oodle covers agent traces, application logs and infrastructure metrics in one product. That scope matters because an agent rarely fails on its own. The cause of a bad answer can sit in an API, a database or a cluster the agent depends on.

Oodle ran its logs product on ClickHouse. In November 2026, Tao Wan of Oodle published a series on what the team learned operating it (Oodle). One post describes an incident after ingestion and queries had already been split onto separate ClickHouse services. One customer’s agents ran a LIKE scan over 26 hours of logs while another integration sent about 330 LIKE queries. The read-only query service sat at 100% CPU for 20 minutes and 46.7% of queries failed. Inserts were fine. Oodle’s MCP server now caps agent log queries at three days (Tao Wan, 11 November 2026).

Oodle has since moved logs to DenaliDB, its own serverless engine built on DataFusion. Telemetry sits in object storage and query execution runs on serverless compute (Oodle architecture docs). Separating storage from compute is the first half. The second half is how compute is allocated and shared when several heavy investigations start at the same moment, which is usually during an incident.

Oodle’s benchmark shows the gap opening under concurrency

On 18 November 2026 Vijay Karthik of Oodle published a metrics comparison of DenaliDB and ClickHouse (Oodle, 18 November 2026). One test ran the same query over 1,000 series and six hours of data at rising concurrency.

p90 latency, same query over 1,000 series and six hours, warm
Concurrent queriesDenaliDBClickHouse
12.4 s2.1 s
83.0 s11.2 s
323.1 s42.4 s
643.1 s88.0 s
1283.2 s176.2 s

ClickHouse was slightly faster with a single query. As concurrency rose, its p90 grew roughly in line with the number of queries, reaching 176.2 seconds at 128. DenaliDB stayed between 2.4 and 3.2 seconds, about 55 times faster at 128. (p90 means 90% of measured queries finished within that time.) This is a vendor-published metrics benchmark against a self-managed ClickHouse setup on one 192 vCPU node. It is not a test of ClickHouse Cloud or of agent-trace queries. What it does show is that the way compute is allocated decides what happens when many investigations run at once.

The hard part is finding the failure that looks like a success

This is the problem Gaurav and I spent most of our conversation on. Picture an agent that tells a customer their subscription is cancelled. The cancellation tool actually returned an error, and the agent misread it. Nothing crashed, the infrastructure is healthy and the request succeeded. The agent still failed.

Finding that across millions of sessions takes more than storing traces. Oodle runs inexpensive checks on every session as it arrives, with no LLM involved, to flag signals such as tool errors the agent talked over, retry loops and users repeating themselves. Its AI agent then verifies the flagged candidates and groups real issues (Oodle Agent Insights). Expensive model analysis is spent only where cheap checks found something. That design works only if the database underneath can scan every session cheaply and return full context on demand.

ClickHouse is adapting, and some teams are solving agent workloads on it

None of this makes ClickHouse the wrong choice. It is a very capable analytical engine, and many observability companies chose it for good reasons.

In March 2026 Langfuse redesigned its data model around a wide, mostly immutable ClickHouse table, removing expensive joins and read-time deduplication (Langfuse, 10 March 2026). Laminar solved trace duplication on ClickHouse, as described above. ClickHouse itself announced On-Demand Compute in private preview on 10 September 2026, letting a service run heavy queries on a shared pool of workers outside its own cluster (ClickHouse, 10 September 2026), and launched a managed ClickHouse Observability product in public beta on 9 November 2026 (ClickHouse, 9 November 2026).

ClickHouse clearly sees the workload shifting too. Whether it can store and query agent traces is settled. The live questions are which architecture handles them efficiently, how much engineering that takes, and which trade-offs a team accepts. For some teams, extending ClickHouse is right. For others, a purpose-built engine buys control over performance, cost and product features.

Nine questions engineering leaders should ask of an observability data layer

If I were choosing observability infrastructure for a team running production agents, I would go beyond ingest volume and query speed.

QuestionWhy it matters
Can we keep every agent trace at a cost we accept?Sampling can drop the rare run that explains a failure.
How does it handle repeated conversation history?Agent loops resend the same context on every model call.
Can it search large text and structured metadata together?A wrong answer is diagnosed from prompts and tool outputs.
What happens when many investigations run at once?Agents create sudden bursts of heavy queries, often during incidents.
Can we query across spans in one trace?The failure and its cost often sit in different spans.
How fast does new telemetry become queryable?Incidents need what is happening now.
What does an automated investigation cost end to end?A cheap query can sit inside an expensive agent session.
Can we see agent failures next to the rest of the stack?The cause is often outside the agent.
How much of our own engineering does it need?Database cost includes people as well as cloud bills.

Products trade these off differently. Braintrust and LangSmith are worth examining for teams focused on building and evaluating AI applications. Pydantic Logfire suits teams that want SQL access across AI and conventional services. Oodle takes the broadest approach, putting agent traces, logs, metrics and automated investigation on one purpose-built engine. No single vendor benchmark settles which is best for every workload.

Why this matters for engineering leadership

For years observability was a storage and search problem: collect more telemetry and find things in it faster. That problem remains. Agents add three more. The data is more complex, relationships between events matter more, and the cost of understanding the data is starting to rival the cost of keeping it.

The five companies in this piece reached the same decision independently. The data layer they once treated as plumbing has become part of the product, because whoever controls it decides how information is stored, how it is queried, how compute is shared and what an investigation costs. Engineers used to be the only readers of observability data. Now agents read it too, and the database underneath has to serve both.

Frequently asked questions

Why are AI observability companies building their own databases?

Agent traces are far larger and more nested than conventional telemetry, and AI agents now query that data as well as humans. LangChain, Braintrust, Pydantic, Arize and Oodle each concluded that owning the data layer gave them more control over cost and performance for that workload.

Did LangChain stop using ClickHouse for LangSmith?

LangChain chose ClickHouse for LangSmith in 2024 and announced SmithDB, its own database built on Apache DataFusion and Vortex, on 13 May 2026. It published migration guidance for self-hosted customers in October 2026.

Is ClickHouse a bad database for AI observability?

No. Langfuse and Laminar both solved agent-trace problems while staying on ClickHouse, and ClickHouse has shipped On-Demand Compute and a managed observability product. The question is how much extra engineering a team wants to own.

What is cost per correct answer in observability?

It is the model spend a coding agent incurs to answer a question about trace data correctly. Braintrust proposed it on 30 November 2026 as a measure alongside query latency.

What is DenaliDB?

DenaliDB is Oodle’s own serverless database engine, built on Apache DataFusion with object storage. Oodle moved its logs product to it from ClickHouse.

Disclosure, credits and sources

Read more news & analysis