Tracing
BAP automatically records NDJSON traces for every session to~/.bap/traces/. The bap trace command lets you view, filter, replay, and export these traces.
View Recent Traces
List Sessions
Filter by Session
Show traces for a specific session ID.
Number of trace entries to show.
Show all trace entries instead of the default last 10.
List all recorded trace sessions.
Replay as HTML Timeline
Generate a self-contained HTML timeline viewer:Generate a self-contained HTML timeline viewer and save it to the current directory.
Export as JSON
Export traces as JSON. Optionally provide a filename.
Trace Data
Each trace entry includes:- Method — The BAP protocol method called (e.g.,
page/navigate,agent/act) - Timing — Request start time and duration in milliseconds
- Status — Success or error
- Result summary — Condensed result data