---
title: "Whether a project has ever received at least one trace span."
method: GET
path: "/otel/has-traces/{project_id}"
tags: ["OTel"]
---

# Whether a project has ever received at least one trace span.

`GET /otel/has-traces/{project_id}`

## Request

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

A pure existence check for onboarding/setup UI (e.g. "has this project
set up OpenTelemetry yet?"). Deliberately not `/otel/trace-summaries`
with `limit=1`: that endpoint aggregates by trace (`GROUP BY trace_id`,
`argMax`) and, without a time bound, that aggregation runs over every
span the project has ever ingested. This endpoint answers the same
yes/no question in O(1) — see `OtelStorage::has_traces`.

## Path parameters

- `project_id` integer, required

## Response `200`

Trace existence check

- HasTracesResponse
  - `has_traces` boolean, required

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `500`: Internal server error

## Changes

- **2026-11-09** `12896146b193`: 3 breaking
  - removed the required property `extensions` from the response with the `401` status
  - removed the required property `extensions` from the response with the `403` status
  - removed the required property `extensions` from the response with the `500` status
- **2026-10-05** `4b228ebed583`: 3 info
  - added the optional property `status` to the response with the `401` status
  - added the optional property `status` to the response with the `403` status
  - added the optional property `status` to the response with the `500` status
- **2026-10-05** `63a80791dc58`: 3 warning
  - removed the optional property `status` from the response with the `401` status
  - removed the optional property `status` from the response with the `403` status
  - removed the optional property `status` from the response with the `500` status
- **2026-09-23** `f4efc4d5c7b7`: 3 info
  - added the optional property `status` to the response with the `401` status
  - added the optional property `status` to the response with the `403` status
  - added the optional property `status` to the response with the `500` status
- **2026-09-07** `c1d47c42df7c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/otel/has-traces/:project_id/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)
