Expand description
§Module: Request Lifecycle Tracer TUI Panel
§Responsibility
Provides a Ratatui panel that renders the full lifecycle of a single request
as a Gantt-chart timeline. Activated with the t key in the TUI; the user
types a request_id to trace, and each pipeline stage is rendered as a
colour-coded bar proportional to time spent.
§Guarantees
- No panics in any rendering or state-update path
- All arithmetic is saturating / checked; no integer overflow
- Zero allocations in the hot render path (only on stage record insertion)
§Feature Gate
This module is compiled unconditionally but TracePanel only renders
content when the tui feature is active (the binary wires it in).
Structs§
- Request
Trace - Complete lifecycle record for one request.
- Stage
Record - Timing record for one pipeline stage within a single request.
- Trace
Panel - State for the request-lifecycle tracer TUI panel.
- Trace
Store - Thread-safe store of recent request traces.
Enums§
- Trace
Panel Mode - Interaction mode for the trace panel.
Constants§
- LIFECYCLE_
STAGES - Ordered pipeline stage labels.