Skip to main content
The ax traces commands let you retrieve and export trace data from your Arize projects.

ax traces list

List traces (root spans) within a project.
ax traces list <project-id> [--space <id>] [--start-time <time>] [--end-time <time>] [--filter <expr>] [--limit <n>] [--cursor <cursor>]
OptionDescription
project-idProject name or ID (required, positional argument)
--spaceSpace name or ID (required when using a project name instead of ID)
--start-timeStart of time window, inclusive (ISO 8601, e.g. 2024-01-01T00:00:00Z)
--end-timeEnd of time window, exclusive (ISO 8601, e.g. 2024-01-02T00:00:00Z). Defaults to now
--filterFilter expression (e.g. "status_code = 'ERROR'", "latency_ms > 1000")
--limitMaximum number of results to return (default: 15)
--cursorPagination cursor for the next page
Examples:
ax traces list proj_abc123
ax traces list proj_abc123 --output traces.json
ax traces list proj_abc123 --filter "latency_ms > 2000" --output traces.parquet
ax traces list my-project --space sp_abc123 --limit 50

ax traces export

Export full traces — all spans belonging to each matching trace. Uses a two-phase approach: first finds root spans matching the filter, then fetches every span for those traces.
ax traces export <project> [--filter <expr>] [--space <id>] [--days <n>] [--start-time <time>] [--end-time <time>] [--limit <n>] [--output-dir <path>] [--stdout] [--all]
OptionDescription
projectProject name or ID (required, positional argument)
--filterFilter expression applied to the initial span lookup (e.g. "status_code = 'ERROR'")
--spaceSpace name or ID (required when using a project name or --all)
--daysLookback window in days (default: 30)
--start-timeOverride start of time window (ISO 8601)
--end-timeOverride end of time window (ISO 8601)
--limitMaximum number of traces to export (default: 50, ignored with --all)
--output-dirDirectory to write the output file (default: current directory)
--stdoutPrint JSON to stdout instead of saving to a file
--allUse Arrow Flight for bulk export — streams all matching spans, ignores --limit
Examples:
# Export the last 30 days of traces for a project
ax traces export proj_abc123

# Export error traces only
ax traces export proj_abc123 --filter "status_code = 'ERROR'"

# Export traces from a specific time range
ax traces export proj_abc123 --start-time 2024-01-01T00:00:00Z --end-time 2024-02-01T00:00:00Z

# Bulk export via Arrow Flight
ax traces export my-project --all --space sp_abc123

# Print to stdout for use in a pipeline
ax traces export proj_abc123 --stdout | jq 'length'