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:
| Field | Description |
|---|---|
trace_id | Trace identifier |
span_id | Span identifier |
| 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 resource_attributes.unomiq_unit) |
duration_ms | Span duration in milliseconds |
| 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 |
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
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.
Request model for query filter.
A single filter condition.
{
"and": [
{
"field": "span_attributes.http.status_code",
"op": "gte",
"value": "200"
},
{
"field": "span_attributes.http.status_code",
"op": "lte",
"value": "299"
},
{
"or": [
{
"field": "span_kind",
"op": "eq",
"value": "SERVER"
},
{
"field": "span_kind",
"op": "eq",
"value": "CLIENT"
}
]
}
]
}