Legacy
Fetch Legacy Analytics
Changed onAggregate span metrics using the fixed legacy schema.
Returns time-bucketed aggregates with a fixed set of fields (count, duration, costs, tokens) split into total and errors. The shape predates specs-driven analytics and is kept for the existing observability dashboards that consume it.
New integrations should prefer POST /tracing/analytics/query, which accepts specs and can summarize arbitrary span attributes, not just the four fixed metrics.
post/tracing/spans/analytics
Request
- Base URL/api (relative, and the document was published on a file host, not at the API’s origin)
- URL/api/tracing/spans/analytics
- AuthAPI key in header Authorization
Query parameters
focus'trace' | 'span'
format'agenta' | 'opentelemetry'
limitinteger nullable
intervalinteger nullable
ratenumber nullable
filterunknown
Response
Successful Response
Changes
- warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status
- warning
- info
api tag
Legacyadded - info
api tag
Deprecatedremoved - info
endpoint reactivated
- info