docs: align ingest trace guidance with public CLI

This commit is contained in:
Andrey Avtomonov 2026-05-18 09:45:14 +02:00
parent fdd66ebf59
commit cfcb91d444

View file

@ -113,11 +113,15 @@ results.
## Inspect source ingest traces ## Inspect source ingest traces
Source ingest writes persistent JSONL traces for postmortem debugging. Stored Source ingest writes persistent JSONL traces for postmortem debugging. Plain
ingest status prints the trace path near the run identifiers: ingest output prints the trace path near the report, run, and job identifiers
when a trace is available:
```bash ```text
ktx ingest status <runId> Report: report-abc123
Run: run-abc123
Job: job-abc123
Trace: .ktx/ingest-traces/job-abc123/trace.jsonl
``` ```
The trace file lives under the project directory at The trace file lives under the project directory at
@ -125,8 +129,7 @@ The trace file lives under the project directory at
job id, run id, sync id, connection id, source key, phase, event name, timing, job id, run id, sync id, connection id, source key, phase, event name, timing,
state snapshot, decision context, and error details. Failed runs also write a state snapshot, decision context, and error details. Failed runs also write a
stored ingest report with `status: "failed"`, `failure.phase`, stored ingest report with `status: "failed"`, `failure.phase`,
`failure.message`, and the same trace path, so `ktx ingest status <runId>` can `failure.message`, and the same trace path.
point you to the postmortem trace.
Use `jq` or line-oriented tools to inspect a trace: Use `jq` or line-oriented tools to inspect a trace: