Get Traces
Get traces within a time range.
Requires a valid JWT token with the read:traces permission.
Retrieves a paginated list of aggregated information for traces by
selecting root spans (parent_span_id is null or span_kind = SPAN_KIND_SERVER)
within the specified time range, aggregating trace duration, span count, and total cost.
By default, filters apply only to root spans. Set search_child_spans=true
to apply filters across all spans, returning traces where at least one
span meets the conditions.
Traces can be filtered with an expression that supports nested AND/OR conditions on the following fields:
Identifiers
| Field | Description |
|---|---|
trace_id | Trace identifier |
span_id | Span identifier |
Span fields
| Field | Description |
|---|---|
span_attributes.* | Any span attribute (e.g., span_attributes.http.method) |
resource_attributes.* | Any resource attribute |
span_kind | Span kind |
span_name | Span name |
service_name | Service name (equivalent to resource_attributes.service.name) |
unit | Unit (equivalent to span_attributes.unomiq.unit) |
parent_unit | Parent unit (equivalent to span_attributes.unomiq.parent_unit) |
duration_ms | Span duration in milliseconds |
Billing & Usage
| Field | Description |
|---|---|
billing.resource_type | Resource type (e.g., db_job, api_request, llm_generate_content) |
billing.resource_name | Billing resource name |
billing.service_id | Billing service ID |
billing.service_name | Billing service name |
billing.sku_id | Billing SKU ID |
billing.sku_name | Billing SKU name |
billing.region | Billing region |
cost | Cost |
usage.amount | Usage amount |
usage.unit | Usage unit |
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Query Parameters
Start datetime (inclusive)
"2025-01-15T00:00:00Z"
End datetime (exclusive)
"2025-01-16T00:00:00Z"
Page number for pagination (1-indexed)
x >= 1Number of items per page
1 <= x <= 100When true, apply filters to all spans including child spans. When false, apply filters only to root spans.
Body
Request model for query filter.
A single filter condition.
- Condition
- AndGroup
- OrGroup