Add Show spans/Show logs visibility toggles to trace waterfall panel#2180
Add Show spans/Show logs visibility toggles to trace waterfall panel#2180
Conversation
Users can now independently show/hide spans and log events in the trace waterfall using dedicated checkboxes. The 'Show spans' checkbox is always visible; the 'Show logs' checkbox appears when a log source is configured. Filtering is applied client-side after the DAG flattening step, so the toggle state has no effect on data fetching. Counts in the header update to reflect only visible rows. Co-authored-by: Mike Shi <mike@hyperdx.io>
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
… controls Switches from three full Checkbox components to Mantine Chip pills, giving a more compact, discoverable UI. Chips are visually prominent enough to be noticed but take significantly less horizontal space than labeled checkboxes. Co-authored-by: Mike Shi <mike@hyperdx.io>
E2E Test Results✅ All tests passed • 159 passed • 3 skipped • 1172s
Tests ran across 4 shards in parallel. |
Adds a 'Show:' label before the chip group, reduces chip padding inline to 8px and height to 22px, and uses Chip.Group for proper grouping. Co-authored-by: Mike Shi <mike@hyperdx.io>
Co-authored-by: Mike Shi <mike@hyperdx.io>
🔵 Tier 2 — Low RiskSmall, isolated change with no API route or data model modifications. Why this tier:
Review process: AI review + quick human skim (target: 5–15 min). Reviewer validates AI assessment and checks for domain-specific concerns. Stats
|
PR Review
|
…t Chip.Group Show 'All items are hidden by filters' when data exists but visibility toggles hide everything, instead of the generic 'No matching spans or logs found'. Replace Chip.Group (unused for controlled chips) with a plain Group. Co-authored-by: Mike Shi <mike@hyperdx.io>
Summary
Adds dedicated visibility toggles to the trace waterfall panel, enabling users to independently show or hide trace spans, correlated log events, and span events. This makes it much easier to isolate and review logs within a trace context without visually scanning through all the span rows.
Uses a compact
Show: [Spans] [Logs] [Span events]chip-toggle pattern — a "Show:" label followed by tight, pill-shaped Mantine Chips with reduced padding (8px inline, 22px height) in muted gray. Active chips show a subtle dark fill with a checkmark; inactive chips fade to near-transparent. The result is sleek and unobtrusive while remaining easy to discover and interact with.The filtering is client-side only — both data sources are still fetched so toggling is instant with no re-query. The span/error counts in the header update to reflect only visible rows.
Screenshots or video
Default state — all toggles active:
Trace waterfall with all visibility chips active showing 8 spans
Spans toggled off — logs-only view:
Spans chip inactive, waterfall shows only correlated log rows
Logs toggled off — spans-only view:
Logs chip inactive, waterfall shows only span timing bars
Full demo (toggle on/off walkthrough):
pr_demo_trace_visibility_toggles.mp4
How to test locally or on Vercel
yarn dev) and ensure you have trace + log data (e.g., send OTel traces and correlated logs, or insert directly into ClickHouse)References
To show artifacts inline, enable in settings.
Linear Issue: HDX-4133