---
title: "GET /otel/global/spans"
method: GET
path: "/otel/global/spans"
tags: ["Traces"]
---

# GET /otel/global/spans

`GET /otel/global/spans`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/otel/global/spans`
- Auth: HTTP bearer

## Query parameters

- `project_id` integer, nullable
- `trace_id` string, nullable
- `service_name` string, nullable
- `status` string, nullable
- `min_duration_ms` number, double, nullable
- `start_time` string, nullable
- `end_time` string, nullable
- `environment_id` integer, nullable
- `deployment_id` integer, nullable
- `attributes` string, nullable
- `name_pattern` string, nullable
- `sort_by` string, nullable
- `sort_order` string, nullable
- `limit` integer, nullable
- `offset` integer, nullable

## Response `200`

- GlobalTracesResponse
  - `data` SpanRecord[], required
    - `attributes` object, required: Raw key/value pairs exactly as reported by the instrumenting library. Numeric values are NOT guaranteed to share `duration_ms`'s unit — they may be seconds, milliseconds, microseconds, or nanoseconds depending on the exporter's own convention, and the unit is not labeled here.
    - `deployment_id` integer, nullable
    - `duration_ms` number, double, required: Span duration in milliseconds. The only field on this struct guaranteed to be in milliseconds.
    - `end_time` string, date-time, required
    - `events` SpanEvent[], required
      - `attributes` object, required
      - `name` string, required
      - `timestamp` string, date-time, required
    - `kind` 'UNSPECIFIED' | 'INTERNAL' | 'SERVER' | 'CLIENT' | 'PRODUCER' | 'CONSUMER', required: Span kind.
    - `name` string, required
    - `parent_span_id` string, nullable
    - `project_id` integer, required
    - `resource` ResourceInfo, required: Resource attributes extracted from OTel resource descriptors.
      - `attributes` object, required
      - `deployment_environment` string, nullable
      - `service_name` string, required
      - `service_version` string, nullable
    - `span_id` string, required
    - `start_time` string, date-time, required
    - `status_code` 'UNSET' | 'OK' | 'ERROR', required: Span status code.
    - `status_message` string, required
    - `trace_id` string, required
  - `total` integer, required
  - `windows` GlobalTraceWindow[], required: Effective per-project windows; totals and rows describe these windows.
    - `effective_end_time` string, date-time, required
    - `effective_start_time` string, date-time, required
    - `project_id` integer, required
    - `source` 'local' | 'cloud', required: Per-project destination for span writes.
    - `window_clamped_at` string, date-time, nullable

## Other responses

- `403`

## Changes

- **2026-11-09** `12896146b193`: 1 breaking
  - removed the required property `extensions` from the response with the `403` status
- **2026-10-05** `4b228ebed583`: 1 info
  - added the optional property `status` to the response with the `403` status
- **2026-10-05** `63a80791dc58`: 1 warning
  - removed the optional property `status` from the response with the `403` status
- **2026-09-23** `f4efc4d5c7b7`: 1 info
  - added the optional property `status` to the response with the `403` status
- **2026-09-11** `0597896e6540`: 1 info
  - added the required property `windows` to the response with the `200` status

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/otel/global/spans/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
