API referenceTraces

GET /trace-groups

GET
/trace-groups

Query Parameters

activityClass?string

Business or system activity; omitted includes all

Value in

  • "business"
  • "system"
  • "all"
since?string

Window start (RFC3339); defaults to 24h before until

until?string

Window end (RFC3339); defaults to now

limit?integer

Max traces to return (default 50, max 500)

Formatint64
offset?integer

Rows to skip for paging

Formatint64
Range0 <= value <= 10000
q?string

Free-text search over span content/metadata

service?array<string>|

Keep traces with a span from any of these services

operation?array<string>|

Keep traces with a span with any of these operations / span names

model?array<string>|

Keep traces with a span using any of these models (request or response)

provider?array<string>|

Keep traces with a span from any of these model providers

agent?array<string>|

Keep traces with a span from any of these agents

tool?array<string>|

Keep traces with a span invoking any of these tools

source?array<string>|

Keep traces with a span from any of these ingest sources

app?array<string>|

Keep traces with a span from any of these application ids

environment?array<string>|

Keep traces with a span from any of these environments (slug or id)

apiKey?array<string>|

Keep traces with a span from any of these API key ids

release?array<string>|

Keep traces with a span from any of these release/build tags

status?array<string>|

Keep traces with a span of any of these statuses (e.g. ok/error)

session?array<string>|

Keep traces with a span from any of these session ids

user?array<string>|

Keep traces with a span from any of these end-user ids

semanticKind?array<string>|

Keep traces with a span of any of these semantic kinds (e.g. llm)

errorsOnly?boolean

Keep only traces containing an error span

minDurationMs?number

Keep only traces at least this many ms long

Formatdouble
sort?string

Row ordering: last_seen_desc (default), last_seen_asc, duration_desc, cost_desc, tokens_desc

Value in

  • "last_seen_desc"
  • "last_seen_asc"
  • "duration_desc"
  • "cost_desc"
  • "tokens_desc"
fresh?boolean

Bypass the 15-second summary cache

Response Body

application/json

application/problem+json

curl -X GET "https://example.com/trace-groups"
{  "$schema": "https://example.com/schemas/TraceGroupsBody.json",  "failedTraces": 0,  "finishedTraces": 0,  "groups": [    {      "activityClass": "string",      "appId": "string",      "environment": "string",      "failed": true,      "firstErrorType": "string",      "firstSeen": "string",      "groupKey": "string",      "lastSeen": "string",      "maxDurationMs": 0.1,      "minDurationMs": 0.1,      "outcome": "string",      "representativeTraceId": "string",      "rootSpanName": "string",      "serviceName": "string",      "traceCount": 0    }  ],  "since": "string",  "totalGroups": 0,  "totalTraces": 0,  "until": "string"}