發生什麼事
@mastra announced span queries. The new option narrows an investigation to matching steps inside a trace. A trace query could find runs with a failed tool call, but its result was the whole trace; a span query returns only the steps (spans) that match your filters (Introducing Span Queries).
Filters cover type, name, status, error, and duration. You can also aggregate counts, error rates, and p50, p95, and p99 latency. Each query accepts up to 100 conditions, and each page returns up to 1,000 results. Grouped aggregates support up to two dimensions and a maximum 365-day window.
01Sources
- @mastra: announcement
- Introducing Span Queries: feature details, limits, CLI and SDK versions, and self-hosted storage requirements — Mastra