Skip to main content
The traces client methods are currently in BETA. The API may change without notice. A one-time warning is emitted on first use.
List LLM traces for a project. Each returned trace carries its full (flat) list of spans plus lightweight roll-up metadata. Traces are returned newest-first.

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). If start_time and end_time are not provided, the last seven days are queried.
For details on pagination, field introspection, and data conversion (to dict/JSON/DataFrame), see Response Objects.

Filter Traces

Use the filter 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.