Filters API Reference
This document describes the filtering system used across Respan endpoints (spans, traces, threads, etc.).
Filter Structure
Filters are passed in the request body as a JSON object:
Filter Operators
Filter Examples
Numeric Filters
Filter by cost greater than $0.01:
Filter by token count range:
String Filters
Filter by customer identifier:
Filter by workflow name (prefix):
Multiple Filters
Combine multiple conditions:
Metadata Filters
To filter custom properties in metadata, prefix the field with metadata__:
Query Parameters
Most endpoints also support these query parameters: