arize-trace

Export and inspect Arize traces and spans to debug LLM application behavior.

1|Updated Nov 9, 2025
One-click install
npx skills add https://github.com/akashjpal/question-generator --skill arize-trace-akashjpal
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: arize-trace
Source: https://github.com/akashjpal/question-generator/tree/main/.agents/skills/arize-trace
Command: npx skills add https://github.com/akashjpal/question-generator --skill arize-trace-akashjpal

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires arize-ax-cli, and includes references (resource) components.

What problem does it solve? Debugging an LLM application in production is hard when you cannot see what prompts were sent, which spans failed, or why latency spiked. This Skill lets you pull existing trace and span data out of Arize with the ax CLI so you can inspect errors, sessions, and model behavior directly. ## Core Features & Use Cases - Trace and Span Export: Download spans by trace ID, span ID, or session ID, or export complete traces with all child spans using ax spans export and ax traces export. - SQL-like Filtering: Query spans with filters on status codes, latency, model names, error types, and OpenInference span kinds to isolate exactly the data you need. - Root-Cause Investigation: Follow guided workflows to debug failing traces, download multi-turn conversation sessions, and analyze error messages and tracebacks. - Use Case: Your LLM agent started returning wrong answers yesterday. Export the last day's traces with --start-time, filter for status_code = 'ERROR', and inspect attributes.error.message and the LLM input messages to find the broken prompt. ## Quick Start Ask the assistant to export the recent traces from your Arize project and show which spans have errors.

Frequently Asked Questions about arize-trace

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I export Arize traces from the command line?

Use `ax traces export PROJECT --space SPACE -l 50 --output-dir .arize-tmp-traces` to download complete traces. For individual spans, use `ax spans export PROJECT --trace-id TRACE_ID` to fetch all spans belonging to a specific trace.

How do I filter Arize spans by error status?

Pass a SQL-like filter to the export command: `ax spans export PROJECT --filter "status_code = 'ERROR'"`. You can combine conditions with AND/OR and filter on columns like latency_ms, attributes.llm.model_name, and attributes.error.type.

Why don't my recent traces show up in Arize export results?

Time-range queries use a time-series index that lags 6 to 12 hours behind ingestion. For recent traces, use a direct lookup with `ax spans export PROJECT --trace-id TRACE_ID`, which hits the primary trace store and is immediately consistent.

What should I do when ax export returns 401 Unauthorized?

For `ax traces export` with a project name, add the `--space` flag. If that fails, resolve the project name to a base64 ID with `ax projects list -l 100 -o json`. If the key itself is wrong, fix the profile with `ax profiles update --api-key $ARIZE_API_KEY`.

When should I use the --all flag for Arize span export?

Use `--all` when exporting more than 500 spans, downloading full traces with many child spans, or running large time-range exports. It switches to Arrow Flight bulk export and requires the `--space` flag, while the `--limit` flag is ignored.