feat(cli): add trace operator commands

This commit is contained in:
Goon committed 2026-06-12 09:48:01 +07:00
1 parent 95fd1f8f2d
commit e2c0398ec9
15 files changed
+1139 -45

No files matched your search

+20
View File
@@ -1393,6 +1393,26 @@ Follow response:
}
```
Main binary operator commands wrap the same endpoints:
```bash
goclaw traces list --query "provider fail" --status error
goclaw traces get <trace-id> -o json
goclaw traces export <trace-id> --file trace.json.gz
goclaw traces follow --session <session-key>
goclaw traces timeline <trace-id>
```
Remote gateways use the shared client overrides:
```bash
goclaw --server https://goclaw.example.com --token "$GOCLAW_GATEWAY_TOKEN" traces list -o json
```
The same `--server` / `--token` resolver is shared with WebSocket/RPC-backed
admin commands. `GOCLAW_SERVER` or `GOCLAW_GATEWAY_URL` can provide the base URL
when the flag is omitted.
### Run Timeline
`GET /v1/runs/{runID}/timeline` returns display-safe archive entries for one