Skip to content

fix(app): match the demo traces rollup's dimension columns to its table - #3736

Draft
alex-fedotyev wants to merge 1 commit into
mainfrom
alex/HDX-6120-trace-rollup-1-demo-mv-config
Draft

alex-fedotyev wants to merge 1 commit into
mainfrom
alex/HDX-6120-trace-rollup-1-demo-mv-config

Conversation

@alex-fedotyev

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

Copy link
Copy Markdown
Contributor

Summary

"Connect to Demo Server" adds two rollups to the Demo Traces source. The config for otel_traces_1m_v2 lists ServiceName, SpanName, SpanKind as its dimension columns, but the table is grouped by ServiceName, StatusCode, SpanName (SHOW CREATE TABLE otel.otel_traces_1m_v2 on the demo service). This lists the table's real columns.

Chart queries weren't affected: the optimizer checks every rewrite with EXPLAIN and doesn't read this list. Two things do:

  • The acceleration dialog shows it as the view's "Available Group and Filter Columns", so it offered SpanKind, which the table doesn't have, and left out StatusCode, which it does.
  • Filter value lookups send a key to a view that lists it. SpanKind values went to otel_traces_1m_v2, failed the EXPLAIN check, and fell back to the source table.

Stack

First of three PRs in a GitHub stack (stack #3778). The PRs above this one say they merge into the branch below them, 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 (this PR)
  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

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

Chart Explorer on Demo Traces over one hour, acceleration dialog with otel_traces_1m_v2 expanded:

Before After
Before: ServiceName, SpanName, SpanKind After: ServiceName, StatusCode, SpanName

How to reproduce

Starting point: this PR's Vercel preview, or yarn app:dev:local, then onboarding → "Connect to Demo Server". The demo sources are created during onboarding, so an existing local setup keeps the old list until you connect to the demo server again.

On main:

  1. Open Chart Explorer, choose the "Demo Traces" source, set the time range to "Last 1 hour", and click "Run".
  2. Click the "Accelerated" badge and expand otel_traces_1m_v2 in the dialog.
  3. "Available Group and Filter Columns" shows ServiceName, SpanName, SpanKind.

On this branch:

  1. Same steps: the list shows ServiceName, StatusCode, SpanName.

How to test on Vercel preview

Preview routes: /chart

Steps:

  1. If the onboarding dialog shows, click "Connect to Demo Server".
  2. Choose "Demo Traces" in the source selector.
  3. Set the time range to "Last 1 hour" and click "Run".
  4. Click the "Accelerated" badge.
  5. In the dialog, expand otel_traces_1m_v2.
  6. Verify "Available Group and Filter Columns" lists ServiceName, StatusCode and SpanName, and not SpanKind.

References

@changeset-bot

changeset-bot Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: a9a8b3b

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:12am UTC
hyperdx-storybook Ready Ready Preview Nov 24, 2026 2:12am 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 • 474 passed • 1 skipped • 1072s

Status Count
✅ Passed 474
❌ Failed 0
⚠️ Flaky 11
⏭️ Skipped 1

Tests ran across 4 shards in parallel.

View full report →

The demo connection describes otel_traces_1m_v2 as grouped by ServiceName,
SpanName and SpanKind, but the table is grouped by ServiceName, StatusCode and
SpanName. Filter value lookups tried the view for SpanKind and failed the
EXPLAIN check, and the view's details showed a column it doesn't have.

This branch was successfully deployed

2 active deployments
Preview – hyperdx-oss — a9a8b3b5 Deployed Nov 24, 2026 by vercel[bot]
Preview – hyperdx-storybook — a9a8b3b5 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