arcflow trace

Print execution traces for a run id from in-process store, JSON file, or HTTP server.

Usage

bash
arcflow trace RUN_ID [options]
FlagDefaultDescription
--formathumanhuman or json
--verboseoffPrint raw events JSON after summary
--tuioffInteractive terminal timeline
--file PATHoffLoad trace from JSON file
--server URLoffFetch GET /v1/runs/{id}/trace

Global: arcflow --no-color trace... for CI logs.

Examples

In-process trace (same machine as SDK run):

bash
arcflow trace 7c9e6679-7425-40de-944b-e07fc1f90ae7

JSON export:

bash
arcflow trace 7c9e6679-7425-40de-944b-e07fc1f90ae7 --format json

Server-backed trace:

bash
export ARCFLOW_SERVER_API_KEY=dev-secret
arcflow trace 7c9e6679-7425-40de-944b-e07fc1f90ae7 --server http://localhost:8080

Equivalent curl:

bash
curl -s "http://localhost:8080/v1/runs/7c9e6679-7425-40de-944b-e07fc1f90ae7/trace" \
 -H "Authorization: Bearer dev-secret"

Import from file (export saved earlier):

bash
arcflow trace any-id --file./trace-export.json --format json

TUI viewer:

bash
arcflow trace 7c9e6679-7425-40de-944b-e07fc1f90ae7 --tui

Human output format

text
run_id: 7c9e6679-7425-40de-944b-e07fc1f90ae7
workflow: research_pipeline
steps: 2

With --verbose, appends:

text
events:
[
 { "kind": "WorkflowStarted", "run_id": "...", "workflow_name": "research_pipeline", "step_count": 2 },
 { "kind": "StepCompleted",... },
 { "kind": "WorkflowCompleted",... }
]

Events are metadata-only trace only (no prompt text).

Where to find run IDs

SourceLocation
Server create responserun_id field from POST /v1/runs
Python SDKresult.run_id when exposed
Postgresarcflow_runs.run_id
Docker logsServer startup run logs

Exit codes

CodeMeaning
0Trace printed
1Trace not found or invalid file
2Store lock failure