Skip to main content
Search

# Mastra latency metrics (TTFC/TTFT)

1 related articles

Subscribe to updates
  1. mastra.ai

    Mastra adds latency metrics to observability: see whether an agent's first response waits on the model or your own code

    Mastra platform and Studio now record two latency metrics for every agent and model call: TTFC, the time a user waits before the first chunk arrives, and TTFT, the time the model takes to start responding. Previously durationMs showed only how long a run took, not how long a user waited for the first response or whether that wait came from the model or from the application's own code. Both metrics are recorded on every span, from the model call up to the agent run, and can be filtered and sorted as fields in trace and span queries on Mastra platform and on self-hosted projects whose storage uses DuckDB, PostgreSQL, or ClickHouse.

You’re all caught up