·
Last changedVersion:
This version passed the hardening gate. Hardening updated the skill content and independently checked the resulting changes. Classified findings before hardening: 8. Classified findings closed: 2. Classified findings remaining: 6. Unclassified scanner findings remaining: 0. Review findings closed: 3. Review findings remaining: 16.
4
4
4
2
Expand | File | Group | Subtype | Severity | Status |
|---|---|---|---|---|---|
references/ax-profiles.md | Excessive Agency & Rogue Autonomy | — | Medium | Open | |
SKILL.md | Sensitive Data & Secret Exposure | Hardcoded secret | Medium | Open | |
SKILL.md | Prompt Injection | Indirect prompt injection | Medium | Open | |
SKILL.md | Prompt Injection | Direct prompt injection | Medium | Open | |
references/ax-setup.md | Supply Chain & Install-Time Trust | Install-time download and execute | Low | Open | |
references/ax-profiles.md | Supply Chain & Install-Time Trust | Install-time download and execute | Low | Closed | |
references/ax-setup.md | Malicious Code & Command Execution | — | Low | Open | |
references/ax-profiles.md | Malicious Code & Command Execution | — | Low | Closed |
8 findings
context.trace_id, rooted at a span with parent_id = nullattributes.session.id (e.g., a multi-turn conversation)Use ax spans export to download individual spans, or ax traces export to download complete traces (all spans belonging to matching traces).
Resolving project for export: The PROJECT positional argument accepts either a project name or a base64 project ID. For ax spans export, a project name works without --space. For ax traces export, --space is required when using a project name. If you hit limit errors or 401 Unauthorized, resolve the name to a base64 ID: run ax projects list -l 100 -o json (add --space SPACE if known), find the project by name, and use its id as PROJECT.
Space name as ground truth: If the user tells you their space name, use it directly — do not run ax spaces list first to look it up. ax spaces list paginates and only returns the first page (~15 spaces); the target space may be on a later page and never appear.
Exploratory export rule: When exporting spans or traces without a specific --trace-id, --span-id, or --session-id (i.e., browsing/exploring a project), always start with -l 50 to pull a small sample first. Summarize what you find, then pull more data only if the user asks or the task requires it. This avoids slow queries and overwhelming output on large projects.
Recency warning: ax traces export and ax spans export return results in arbitrary order, not by recency. Running without --start-time will not give you the most recent traces. To fetch recent data (e.g., "last day's conversations"), always pass --start-time scoped to the relevant window.
Default output directory: Always use --output-dir .arize-tmp-traces on every call. The CLI automatically creates the directory and adds it to .gitignore.
Proceed directly with the task — run the ax command you need. Do NOT check versions, env vars, or profiles upfront.
If an ax command fails, troubleshoot based on the error:
command not found or version error → see references/ax-setup.md401 Unauthorized / missing API key → run ax profiles show to inspect the current profile. If the profile is missing or the API key is wrong, follow references/ax-profiles.md to create/update it. If the user doesn't have their key, direct them to https://app.arize.com/admin > API Keysax spaces list to pick by name, or ask the user.env files or search the filesystem for credentials. Use ax profiles for Arize credentials and ax ai-integrations for LLM provider keys. If credentials are not available through these channels, ask the user.ax projects list -l 100 -o json (add --space SPACE if known), present the names, and ask the user to pick oneIMPORTANT: For ax traces export, --space is required when using a project name. For ax spans export, --space is only required when using --all (Arrow Flight). If you hit 401 Unauthorized or limit errors, resolve the project name to a base64 ID first (see "Resolving project for export" in Concepts).
Deterministic verification rule: If you already know a specific trace_id and can resolve a base64 project ID, prefer ax spans export PROJECT --trace-id TRACE_ID for verification. Use ax traces export mainly for exploration or when you need the trace lookup phase.
ax spans exportThe primary command for downloading trace data to a file.
| Flag | Default | Description |
|---|---|---|
|
| Project name or base64 ID |
| — | Filter by |
| — | Filter by |
| — | Filter by |
| — | SQL-like filter; combinable with any ID flag |
| 100 | Max spans (REST); ignored with |
| — | Required when using |
| 30 | Lookback window; ignored if |
| — | ISO 8601 time range override |
|
| Output directory |
| false | Print JSON to stdout instead of file |
| false | Unlimited bulk export via Arrow Flight (see below) |
Output is a JSON array of span objects. File naming: {type}_{id}_{timestamp}/spans.json.
When you have both a project ID and trace ID, this is the most reliable verification path:
--allPass --all for unlimited bulk export.
When to use --all:
Agent auto-escalation rule: If an export returns exactly the number of spans requested by -l (or 500 if no limit was set), the result is likely truncated. Increase -l to get the full dataset — but only when the user asks.
Decision tree:
Requirements for --all:
--space is required (Flight uses space + project name)--limit is ignored when --all is setNetworking notes for --all:
Arrow Flight connects to flight.arize.com:443 via gRPC+TLS -- this is a different host from the REST API (api.arize.com). On internal or private networks, the Flight endpoint may use a different host/port. Configure via:
flight_host, flight_port, flight_schemeARIZE_FLIGHT_HOST, ARIZE_FLIGHT_PORT, ARIZE_FLIGHT_SCHEMEInternal/private deployment note: On internal Arize deployments, Arrow Flight may fail with auth errors even with a valid API key (the Flight endpoint may have additional network or auth restrictions). If --all fails, fall back to REST with batched time windows: loop over --start-time/--end-time ranges (e.g., day by day) using -l 500 per batch.
The --all flag is also available on ax traces export, ax datasets export, and ax experiments export with the same behavior (REST by default, Flight with --all).
ax traces exportExport full traces -- all spans belonging to traces that match a filter. Uses a two-phase approach:
--filter (up to --limit via REST, or all via Flight with --all)| Flag | Type | Default | Description |
|---|---|---|---|
| string | required | Project name or base64 ID (positional arg) |
| string | none | Filter expression for phase-1 span lookup |
| string | none | Space name or ID; required when |
| int | 50 | Max number of traces to export |
| int | 30 | Lookback window in days |
| string | none | Override start (ISO 8601) |
| string | none | Override end (ISO 8601) |
| string |
| Output directory |
| bool | false | Print JSON to stdout instead of file |
| bool | false | Use Arrow Flight for both phases (see spans |
| string | default | Configuration profile |
ax spans exportax spans export exports individual spans matching a filterax traces export exports complete traces -- it finds spans matching the filter, then pulls ALL spans for those traces (including siblings and children that may not match the filter)Arize uses two storage tiers:
trace_id) — spans are written here immediately on ingestion. --trace-id direct lookups (ax spans export PROJECT_ID --trace-id TRACE_ID) hit this store and are always up to date.--days, --start-time, --end-time) — built asynchronously from the primary store and lags 6–12 hours. Queries scoped by time range will miss very recent traces.Implication: If you already have a trace_id, use ax spans export PROJECT_ID --trace-id TRACE_ID — it's faster and immediately consistent. Use time-range queries only for historical exploration, and set --start-time at least 12 hours in the past to guarantee results are indexed.
SQL-like expressions passed to --filter.
| Column | Type | Description | Example Values |
|---|---|---|---|
| string | Span name |
|
| string | Status |
|
| number | Duration in ms |
|
| string | Parent span ID | null for root spans |
| string | Trace ID | |
| string | Span ID | |
| string | Session ID | |
| string | Span kind |
|
| string | LLM model |
|
| string | Span input | |
| string | Span output | |
| string | Error type |
|
| string | Error message | |
| string | Error tracebacks | Use CONTAINS (not exact match) |
=, !=, <, <=, >, >=, AND, OR, IN, CONTAINS, LIKE, IS NULL, IS NOT NULL
IN over multiple OR conditions: name IN ('a', 'b', 'c') not name = 'a' OR name = 'b' OR name = 'c'LIKE, then switch to = or IN once you know exact valuesCONTAINS for event.attributes (error tracebacks) -- exact match is unreliable on complex textax traces export PROJECT --filter "status_code = 'ERROR'" -l 50 --output-dir .arize-tmp-tracesstatus_code: ERRORattributes.error.type and attributes.error.message on error spansax spans export PROJECT --session-id SESSION_ID --output-dir .arize-tmp-tracesstart_time, grouped by context.trace_idattributes.session.id in the output to get the session IDax traces export fails before querying spans because of project-name resolution, retry with a base64 project ID.ax spaces list is unsupported, treat ax projects list -o json as the fallback discovery surface.--space is rejected by the CLI but the API key still lists projects without it, report the mismatch instead of silently swapping identifiers.| Column | Description |
|---|---|
| Span operation name (e.g., |
| Trace ID -- all spans in a trace share this |
| Unique span ID |
| Parent span ID. |
| When the span started (ISO 8601) |
| When the span ended |
| Duration in milliseconds |
|
|
| Optional message (usually set on errors) |
|
|
Generic input/output (all span kinds):
| Column | What it contains |
|---|---|
| The input to the operation. For LLM spans, often the full prompt or serialized messages JSON. For chain/agent spans, the user's question. |
| Format hint: |
| The output. For LLM spans, the model's response. For chain/agent spans, the final answer. |
| Format hint for output |
LLM-specific message arrays (structured chat format):
| Column | What it contains |
|---|---|
| Structured input messages array (system, user, assistant, tool). Where chat prompts live in role-based format. |
| Array of roles: |
| Array of message content strings |
| Structured output messages from the model |
| Model response content |
| Tool calls the model wants to make |
| Arguments for those tool calls |
Prompt templates:
| Column | What it contains |
|---|---|
| The prompt template with variable placeholders (e.g., |
| Template variable values (JSON object) |
Finding prompts by span kind:
attributes.llm.input_messages for structured chat messages, OR attributes.input.value for serialized prompt. Check attributes.llm.prompt_template.template for the template.attributes.input.value for the user's question. Actual LLM prompts are on child LLM spans.attributes.input.value for tool input, attributes.output.value for tool result.| Column | Description |
|---|---|
| Model identifier (e.g., |
| Model parameters JSON (temperature, max_tokens, top_p, etc.) |
| Input token count |
| Output token count |
| Total tokens |
| Input cost in USD |
| Output cost in USD |
| Total cost in USD |
| Column | Description |
|---|---|
| Tool/function name |
| Tool description |
| Tool parameter schema (JSON) |
| Column | Description |
|---|---|
| Retrieved documents array |
| Document IDs |
| Relevance scores |
| Document text content |
| Document metadata |
| Column | Description |
|---|---|
| The query being reranked |
| Reranker model |
| Number of results |
| Input documents (ids, scores, contents, metadatas) |
| Reranked output documents |
| Column | Description |
|---|---|
| Session/conversation ID -- groups traces into multi-turn sessions |
| End-user identifier |
| Custom key-value metadata. Any key under this prefix is user-defined (e.g., |
| Column | Description |
|---|---|
| Exception class name (e.g., |
| Exception message text |
| Error tracebacks and detailed event data. Use |
| Column | Description |
|---|---|
| Human or auto-eval label (e.g., |
| Numeric score (e.g., |
| Freeform annotation text |
| Column | Description |
|---|---|
| Embedding model name |
| Text chunks that were embedded |
| Problem | Solution |
|---|---|
| See references/ax-setup.md |
| macOS: |
| The installed |
| No profile is configured. See references/ax-profiles.md to create one. |
| For |
| Expand |
Results don't include recent traces | Time-range queries lag 6–12h. Use |
| Check column name spelling (e.g., |
| The attribute path is wrong or not indexed. Try browsing a small sample first to see actual column names: |
| Use |
arize-datasetarize-experimentarize-prompt-optimizationarize-linkGet started with chainctlchainctl skill install public/github/arize-trace:latest
Bring Chainguard's hardening pipeline to your first-party skills — custom rulesets, automated remediation, full audit trail.
skills.cgr.dev/public/github.com/github/skills/arize-trace:latest
MIT
HARDENING.md
LICENSE
SKILL.md
references/ax-profiles.md
references/ax-setup.md