errors.traces.list

List a project’s sampled traces (their root transactions): newest or slowest, server or page loads or failed, of one route

GET /errors/api/projects/{id}/tracesIAM errors:GetEventsRead

Request syntax

GET /errors/api/projects/{id}/traces

Path parameters

  • idRequired

    string

    Constraints: uuid

Query parameters

  • rangeOptional

    enum

    Window counted back from now: 1h, 24h (default), 7d, 14d, 30d or 90d

    One of: 1h, 24h, 7d, 14d, 30d, 90d

    Default: "24h"

  • environmentOptional

    string

    Only this environment (production, staging, …). Default: every environment

    Constraints: 1-64 chars

  • routeOptional

    string

    Only traces whose root is this route

    Constraints: 1-300 chars

  • orderOptional

    enum

    newest (default) or slowest first

    One of: newest, slowest

    Default: "newest"

  • kindOptional

    enum

    all (default), server requests, page loads, or failed ones (status not ok)

    One of: all, server, pages, failed

    Default: "all"

  • minMsOptional

    number

    Only traces at least this long, in milliseconds

    Constraints: 0-3600000

  • limitOptional

    number

    Most traces to return, the busiest first: 1–500, default 50

    Constraints: integer, 1-500

    Default: 50

Response

200 with a row per trace root: eventId, traceId, name (the route), op, status, startedAt, durationMs, spanCount, release, environment, sampleRate. Open one with `traces get`.

A JSON response is wrapped as { "success": true, "data": … }; the CLI prints the whole body with --json.

Errors

  • 400The request does not pass the schema above. The body is { "error": …, "issues": […] }, one issue per field.
  • 401No credentials, or an access key that is unknown, revoked or expired.
  • 403The caller's policies do not allow errors:GetEvents on this resource. The body names the action and the resource, and the refusal is recorded in the audit log.
  • 404The resource does not exist in your organization.

Examples

The required parameters only, with example values. Replace id and the other placeholders with your own.

dcloud errors traces list id

Generated from the API description, the same one the API checks requests against and the CLI is built from. MCP tool: dcloud_errors_traces_list.