---
title: "Get filter fields for span analytics queries."
method: GET
path: "/v1/tracing/spanquery/fields"
tags: ["spanAnalytics"]
---

# Get filter fields for span analytics queries.

`GET /v1/tracing/spanquery/fields`

Get a list of available fields which can be used in span analytics queries.

## Response `200`

List of available fields.

- SpanQueryFieldsResponse
  - `fields` SpanQueryFieldDetail[], required — List of span fields.
    - `field` string, required — Filter field name.
    - `fieldType` string, required — Indicates the kind of a field. Possible values: `SpanAttribute`, `SpanEventAttribute`.
    - `valueListing` boolean — Indicates whether values for this field can be listed.
    - `description` string — Short description of the field.
    - `type` string, required — The type the values of this field will have. Possible values: `DoubleTracingValue`, `IntegerTracingValue`, `StringTracingValue`, `DateTimeTracingValue`.
    - `noValuesReason` NoTraceFieldValuesReason
      - `code` string, required — A code uniquely identifying the reason for the lack of trace field values. Possible values: `HighCardinalityField`, `AutocompleteDisabled`.
      - `message` string, required — A short English-language description of the reason.
    - `inSchema` boolean, required — Indicates whether the field is available in the schema.

## 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/revisions/18a824df1e78/schema)
