Query traces

http
GET /projects/{project_reference}/traces

Query project traces. Requires project.logs.read.

Parameters

NameInRequiredDescription
project_referencepathYes
environmentqueryExact runtime environment tag, for example preview or production. Untagged telemetry is excluded.
hostqueryExact request host (without scheme or path), for example demo.preview.veryfront.com. Untagged telemetry is excluded.
startqueryStart time. ISO 8601 timestamp accepted by the Veryfront API. The backend converts it to the unix-second format required by Grafana Cloud Tempo. Traces are kept for 30 days and one search spans at most 30 days; an older start or a wider range returns 400.
endqueryEnd time. ISO 8601 timestamp accepted by the Veryfront API. The backend converts it to the unix-second format required by Grafana Cloud Tempo. Traces are kept for 30 days and one search spans at most 30 days; an older start or a wider range returns 400.
limitqueryMax traces to return (default: 20, max: 100).
servicequeryOptional OpenTelemetry service.name filter, for example veryfront-api, veryfront-studio, or veryfront-server.
statusqueryOptional Tempo status filter. Use ok, error, or unset. error matches traces with an error span of the project or without project context anywhere in the trace, as trace detail reports.
min_duration_msqueryOptional minimum trace duration in milliseconds.
run_idqueryOptional run ID. Returns traces with a span whose run.id, parent.run.id, or agent.run.id is this run, or that contain its runtime control-plane request.
sort_byqueryField to order the returned traces by. Defaults to timestamp; ties break by trace ID ascending. MCP and GraphQL preserve the search's newest-first nanosecond order when both sort controls are omitted.
sort_orderquerySort direction. Defaults to desc.

Responses

StatusDescription
200Compact, project-scoped summaries of recent Grafana Cloud Tempo traces
400Invalid trace query parameters, including a time range beyond retention
401Unauthorized
403Forbidden — project.logs.read capability required
404Project not found
429Rate limit exceeded
502External trace provider error from Grafana Cloud Tempo.
503Trace service unavailable or Grafana Cloud Tempo read path is not configured.