How Mastra turns agent traces into tested improvements with ClickHouse Cloud

Abhi Aiyer, co-founder and CTO of Mastra, explains how agent traces stored in ClickHouse Cloud become evidence for investigating failures, proposing fixes and testing improvements before human-approved changes reach a pull request.
What can an AI agent learn from its previous runs? In this talk, Abhi Aiyer, co-founder and CTO of Mastra, walks through a feedback loop that turns execution traces into proposed improvements. Mastra is a TypeScript framework for building AI agents; ClickHouse Cloud stores the traces that provide the evidence for this workflow.
Abhi follows the process from extracting signals and grouping recurring themes to investigating a suspected failure against both traces and code. Confirmed problems become issues for human review. Proposed fixes are compared with a baseline, approved and checked for regressions before a pull request is opened.
Watch to see how Mastra separates an observation from a confirmed issue, how its investigation agent finds the context behind a failure, and where human review and testing fit into the learning loop. ClickHouse provides the trace store; Mastra performs the analysis and coordinates the proposed changes.
Build on your agent traces with ClickHouse Cloud
Explore your own trace data with fast SQL analytics. Get started with ClickHouse Cloud and receive $300 in free credits.
Try ClickHouse CloudRelated videos
View all Videos
Meetups, User stories
How Check Point cut its cluster from 69 nodes to 2 with ClickHouse Cloud
Ronel Poliak explains how Check Point moved leaked-credential searches from Elasticsearch to ClickHouse Cloud, reduced its data-node count from 69 to two, and cut its bill by 80%.

Meetups, User stories
How Varonis migrated analytics from PostgreSQL to ClickHouse
Ido Perry explains how Varonis moved activity-event analytics from PostgreSQL to ClickHouse Cloud, simplified its multi-tenant data model, and reduced query latency and storage.

Meetups
How HPE Networking scaled telemetry to 95 million records a minute with ClickHouse Cloud
Vignesh Senapathy, Sr. Principal DevOps Engineer at HPE Networking, explains how the EdgeConnect team moved SD-WAN telemetry from per-customer MySQL databases to ClickHouse Cloud, with S3 batching, separate read and write compute, and aggregates for customer dashboards.

User stories, Meetups
How Equativ powers real-time advertising products with ClickHouse Cloud
Adrien Coulaud and Jean-Denis Costa explain how Equativ uses ClickHouse Cloud for customer-facing reporting, fast lookups, and operational feedback across its advertising products.