Skip to content

Commit 9abcd52

Browse files
viadezo1erclaude
andcommitted
feat: suggest --json in bt view trace text output
The non-JSON text output of `bt view trace` only hinted at `bt view span --id <row-id>` for full data, which requires N per-span calls. Agents running `bt view trace` to analyze a trace would either fan out N requests or pivot to the web UI's CSV export. Add a hint pointing at `--json` so the full trace payload is reachable in one copy-pasteable command, alongside the existing next-page hint. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 232508e commit 9abcd52

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/traces.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4998,6 +4998,12 @@ fn print_trace_text(
49984998
profile_flag_suffix(profile),
49994999
object_ref
50005000
);
5001+
println!(
5002+
"For the full trace payload in one call, re-run with --json: `bt view trace --json{} --object-ref {} --trace-id {}`.",
5003+
profile_flag_suffix(profile),
5004+
object_ref,
5005+
trace_id
5006+
);
50015007
if let Some(cursor) = next_cursor {
50025008
let limit_suffix = if limit != 50 {
50035009
format!(" --limit {limit}")

0 commit comments

Comments
 (0)