Mastra launches agent observability query APIs
Mastra has introduced new observability APIs to programmatically query performance, usage, and cost metrics from agent runs, workflows, and tools. Using OLAP databases like DuckDB and ClickHouse, developers can track latency, token consumption, and error rates via time-series, percentile, and aggregation queries.
Integrating local and production-grade OLAP databases (DuckDB and ClickHouse) directly into an agent framework makes tracking LLM costs and latency a first-class developer experience rather than an afterthought.
- –**Embedded OLAP**: Utilizing DuckDB for local environments allows developers to query and test analytics locally without spinning up heavy external infrastructure.
- –**Production Scalability**: The ClickHouse integration provides high-throughput analytical query capabilities suitable for production-scale monitoring.
- –**No Vendor Lock-in**: Full OpenTelemetry compatibility guarantees that developers can export these traces and metrics to platforms like Datadog, SigNoz, or New Relic.
DISCOVERED
2h ago
2026-06-09
PUBLISHED
2h ago
2026-06-09
RELEVANCE
AUTHOR
mastra
