The
traces client methods are currently in BETA. The API may change without notice. A one-time warning is emitted on first use.Key Capabilities
- List traces for a project within a time window
- Filter traces by span attributes (a trace matches when any of its spans matches)
- Cursor-based pagination
List Traces
List traces for a project within an optional time window. Traces are returned in descending start-time order (most recent first). Ifstart_time and end_time are not provided, the last seven days are queried.
Filter Traces
Use thefilter parameter to narrow results. The expression syntax matches client.spans.list, but the semantics differ: a trace is returned when any of its spans matches the filter (the matching span is usually a child, not the root), rather than only traces whose root span matches.