---
search:
  tags:
    - Telemetry
    - GET
seo:
  description: >-
    Returns the spans of a tenant's calls over a span of time, oldest first.…
    Reference for the GET /_luna/telemetry/{tenant}/traces endpoint in the Luna
    API.
sidebar:
  label: Query traces
  badge: GET
title: Query traces
type: openapi-operation
---
Returns the spans of a tenant's calls over a span of time, oldest first. Every call is a span. Luna keeps the spans of calls that failed, were slow or were sampled. Name a `trace` to read one trace whole, however long ago it ran.

`GET /_luna/telemetry/{tenant}/traces`

**Responses**

- `200` — The spans that match.
- `default` — The request failed. The status says how and \`error.message\` says why.

Response example, 200:

```json
{
  "spans": [
    {
      "seq": "string",
      "member": 0,
      "traceId": "string",
      "spanId": "string",
      "parentSpanId": "string",
      "name": "string",
      "kind": "string",
      "startNs": 0,
      "endNs": 0,
      "error": "string",
      "attrs": {},
      "events": [
        {}
      ],
      "links": [
        {}
      ]
    }
  ]
}
```
