---
title: "Get results of a trace search query."
method: GET
path: "/v1/tracing/tracequery/{queryId}/rows/{rowId}/traces"
tags: ["traces"]
---

# Get results of a trace search query.

`GET /v1/tracing/tracequery/{queryId}/rows/{rowId}/traces`

Get a list of traces matching a query with the specified id. The response is paginated with a default limit of 100 traces per page.

## Path parameters

- `queryId` string, required
- `rowId` string, required

## Query parameters

- `limit` integer
- `token` string

## Response `200`

Details about the given span query.

- TraceQueryResultResponse
  - `results` TraceDetail[], required — List of traces matching the query.
    - `id` string, required — Trace identifier.
    - `rootService` string — Root service which started the trace. Examples: `user-service`, `authentication-service`, `payment-service`, `/shopping-cart`
    - `rootResource` string — Root resource on which the trace was started. Examples: `db.query`, `http.request`, `rpc.call`, `container`
    - `rootStatus` TraceSpanStatus
      - `code` string, required — Status code of the span. Possible values: `OK`, `ERROR`, `UNKNOWN`.
      - `message` string — Optional descriptive message about the status, could be an http status code or the kind of an error, e.g. OSError.
    - `rootOperationName` string — The name of the operation given to the root span.
    - `metrics` object — Calculated trace metrics.
    - `startedAt` string, date-time — Date and time the trace was started in [ISO 8601 / RFC3339](https://tools.ietf.org/html/rfc3339) format.
    - `criticalPathServiceBreakdownSummary` CriticalPathServiceBreakdownSummary
      - `elements` CriticalPathServiceBreakdownElementBase[], required — List of the elements representing the critical path service duration breakdown - contains the first few services with the longest overall duration of the spans contributing to the critical path.
        - `service` string — The name of the service.
        - `serviceColor` string — Color hex code assigned to the service.
        - `duration` integer, required — Overall processing time in nanoseconds consumed by the spans belonging to this service in the critical path (a sum of the duration times of the spans' critical path segments).
      - `otherServicesDuration` integer, required — Overall processing time in nanoseconds consumed by the rest of the spans in the critical path (a sum of the duration times of the spans' critical path segments).
      - `idleTime` integer, required — Overall time in nanoseconds when no particular operation was in progress.
  - `next` string — Next continuation token.

## Other responses

- `default` — Operation failed with an error.

---

[API](https://skmtc.net/sumologic/apis/sumo-logic-api.md) · [All operations](https://skmtc.net/sumologic/apis/sumo-logic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sumologic/sumo-logic-api/versions/18a824df1e78/schema)
