---
title: "Get a span analytics query status."
method: GET
path: "/v1/tracing/spanquery/{queryId}/status"
tags: ["spanAnalytics"]
---

# Get a span analytics query status.

`GET /v1/tracing/spanquery/{queryId}/status`

Get a status of a span analytics query with the given id. When the query has been completed, use the [Span Query Result](#operation/getSpanQueryResult) endpoint to get the result of the asynchronous query.

## Path parameters

- `queryId` string, required

## Response `200`

Details about the given span query.

- SpanQueryStatusResponse
  - `queryRows` SpanQueryRowStatus[], required — A list of span analytics queries.
    - `rowId` string, required — A unique identifier of the query.
    - `status` string, required — Status of the query. Possible values: `Processing`, `Finished`, `Error`, `Paused`.
    - `statusMessage` string — Descriptive message of the status.
    - `count` integer, required — Number of results matching the query
    - `approximatedFieldCounts` boolean — Indicates whether facet field cardinality counts are approximated or not.
    - `facetsCompleted` boolean — Indicates whether facets calculation has completed.
  - `status` string, required — Status of the query. Possible values: `Processing`, `Finished`, `Error`, `Paused`

## 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)
