Skip to content

feat(app): show materialized view indicators on the trace search RED charts - #3739

Draft
alex-fedotyev wants to merge 2 commits into
alex/HDX-6120-trace-rollup-2-dd-merge-paramsfrom
alex/HDX-6120-trace-rollup-4-mv-indicator
Draft

alex-fedotyev wants to merge 2 commits into
alex/HDX-6120-trace-rollup-2-dd-merge-paramsfrom
alex/HDX-6120-trace-rollup-4-mv-indicator

Conversation

@alex-fedotyev

@alex-fedotyev alex-fedotyev commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The Throughput, Errors and Duration charts on trace search already read from a source's materialized views when one fits, but they hid the indicators dashboard tiles show, so there was no way to tell whether a chart was accelerated or why not. They now use the dashboard defaults:

  • The bolt icon says whether a view served the chart. Clicking it opens the dialog that names the view, or says why each view couldn't serve the chart.
  • The clock icon appears when the view's one-minute rollups widened the queried range to whole minutes. Its tooltip gives the range, for example "Querying Nov 24 12:40:00 AM - Nov 24 1:41:00 AM due to 1 minute rollups in query acceleration."

Both appear only on sources that have views. Dashboard tiles already show both; this removes the two overrides that hid them here. The search histogram and the results count keep reading the exact range.

With both icons, the Errors header ran out of room below about 1100px: the title wrapped one letter per line, then disappeared (on main that starts below about 960px). The charts now use the collapsed toolbar dashboard tiles use: once a tile is 200px wide or less, its header controls move into a "⋮" menu and the title keeps the row. In the search layout that happens below about 1150px. Under 900px the search page shows the histogram instead of these charts, as before.

Loading and error states are the charts' existing ones. A source without views shows neither icon.

Stack

Third of three PRs in a GitHub stack (stack #3778). The header says this PR merges into the branch below it, but the stack's base is main: merging a PR lands it and every PR below it on main, one squashed commit each. Each diff is only its own change, and CI runs as if each PR targets main.

  1. fix(app): match the demo traces rollup's dimension columns to its table #3736 Demo traces rollup lists its real dimension columns
  2. fix(common-utils): merge DDSketch and GK quantile states with their accuracy #3737 DDSketch and GK quantile states merge with their accuracy
  3. feat(app): show materialized view indicators on the trace search RED charts #3739 Materialized view indicators on the trace search RED charts (this PR)

The three changes don't depend on each other's code. They're groundwork for a default trace rollup, ordered smallest first.

Screenshots or video

Demo Traces from 12:40:17 AM to 1:40:17 AM, light theme. A one-minute view serves all three charts on both builds; only this branch says so:

Before After
Before: no indicators After: bolt and clock icons on each chart

The clock tooltip, with the range the view's rollups queried:

Clock tooltip

The dialog from the Duration chart: otel_traces_1m_v2 served it, and otel_traces_1m has no percentile column:

Acceleration dialog

Fifteen minutes uses 15-second buckets, finer than the views, so each chart reads the source table, shows "Not accelerated", and has no clock:

Not accelerated over 15 minutes

Dark theme:

After, dark theme

At 1100px the controls fold into each chart's menu; the Errors menu is open:

Folded header controls at 1100px

How to reproduce

Starting point: this PR's Vercel preview, or yarn app:dev:local, then onboarding → "Connect to Demo Server".

On main:

  1. Open Search, choose the "Demo Traces" source, and set the time range to "Last 1 hour".
  2. The Throughput, Errors and Duration charts show no indicators, though a view serves them.

On this branch:

  1. Same steps, in a window at least 1200px wide: each chart's header shows a green bolt ("Accelerated") and a clock. Hover the clock for the queried range, and click the bolt for the dialog.
  2. Set the time range to "Last 15 minutes": each chart shows the crossed-out bolt ("Not accelerated") and no clock.
  3. Narrow the window to about 1100px: each chart shows a "⋮" button instead, and the Errors menu holds the bolt, the clock and the Rate/Vol control.

How to test on Vercel preview

Preview routes: /search

Steps:

  1. Use a browser window at least 1200px wide.
  2. If the onboarding dialog shows, click "Connect to Demo Server".
  3. Choose "Demo Traces" in the source selector.
  4. Set the time range to "Last 1 hour".
  5. Verify the Throughput, Errors and Duration charts each show a button labeled "Accelerated" in their header.
  6. Click the "Accelerated" button on the Duration chart.
  7. Verify a "Materialized Views" dialog opens and shows otel_traces_1m_v2 as "Active".

References

@changeset-bot

changeset-bot Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f9acb06

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@hyperdx/app Patch
@hyperdx/api Patch
@hyperdx/otel-collector Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercel Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
hyperdx-oss Ready Ready Preview Nov 24, 2026 2:31am UTC
hyperdx-storybook Ready Ready Preview Nov 24, 2026 2:31am UTC

Request Review

@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Duplicate code analysis

No new duplicate code introduced by this PR.


jscpd compared this branch against origin/main
across app, api and common-utils. Only new clones are listed; the codebase
currently holds 107 in total (1.12%).
Run yarn dupes locally to reproduce, or yarn dupes:all for the full picture.

@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

E2E Test Results

✅ All tests passed • 476 passed • 1 skipped • 1113s

Status Count
✅ Passed 476
❌ Failed 0
⚠️ Flaky 10
⏭️ Skipped 1

Tests ran across 4 shards in parallel.

View full report →

…charts

The Throughput, Errors and Duration tiles already read from a source's
materialized views when one fits, but they hid the indicators dashboard tiles
show, so there was no way to tell whether a tile was accelerated or why not.
The tiles now use the dashboard defaults: the acceleration indicator with its
explanation dialog, and the date-range indicator, which shows the range the
view's rollups queried when it differs from the search range.
@alex-fedotyev
alex-fedotyev force-pushed the alex/HDX-6120-trace-rollup-4-mv-indicator branch from b24f1a0 to a054c7d Compare November 24, 2026 02:06
@alex-fedotyev
alex-fedotyev changed the base branch from alex/HDX-6120-trace-rollup-3-exact-mv-edges to alex/HDX-6120-trace-rollup-2-dd-merge-params November 24, 2026 02:07
With the acceleration and date-range icons, the Errors header ran out of room
below about 1100px: its title wrapped one letter per line, then disappeared.
The RED charts now use the collapsed toolbar dashboard tiles use, which moves
the header controls into a menu once a tile is 200px wide or less.
@alex-fedotyev alex-fedotyev changed the title feat(app): show materialized view acceleration on the trace search RED charts feat(app): show materialized view indicators on the trace search RED charts Nov 24, 2026

This branch was successfully deployed

2 active deployments
Preview – hyperdx-oss — f9acb06c Deployed Nov 24, 2026 by vercel[bot]
Preview – hyperdx-storybook — f9acb06c Deployed Nov 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant