Skip to content

feat(dashboards): reuse explore confidence footers in dashboard widgets#109870

Draft
nsdeschenes wants to merge 8 commits intomasterfrom
nd/logs-586/chore-reuse-dashboard-confidence-footers
Draft

feat(dashboards): reuse explore confidence footers in dashboard widgets#109870
nsdeschenes wants to merge 8 commits intomasterfrom
nd/logs-586/chore-reuse-dashboard-confidence-footers

Conversation

@nsdeschenes
Copy link
Contributor

@nsdeschenes nsdeschenes commented Mar 4, 2026

Summary

  • Reuse Explore confidence footer components in dashboard chart surfaces for spans, logs, and trace metrics (widget builder preview and widget viewer).
  • Add dashboard raw-count plumbing with explicit selection override so footer counts stay aligned with widget viewer zoom state.
  • Propagate confidence sampling metadata (dataScanned, sampleCount, isSampled) through widget query layers and add focused tests for spans + trace metrics confidence behavior.

Refs LOGS-586

Made with Cursor

@linear
Copy link

linear bot commented Mar 4, 2026

@nsdeschenes
Copy link
Contributor Author

@sentry review

@nsdeschenes
Copy link
Contributor Author

@cursor review

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 4, 2026
Convert dashboard chart series into Explore TimeSeries before deriving
confidence and sampling metadata, and align widget query/raw-count typing
with optional sampling fields returned by shared helpers.

Refs LOGS-586

Made-with: Cursor
Gate useWidgetRawCounts by display type so table/big number/details and other
non-timeseries widgets do not issue normal and high-accuracy raw count queries.
Add a regression test to ensure these requests stay disabled.

Made-with: Cursor
Route LOGS widgets through a dedicated query component so confidence footer metadata
comes from raw timeseries responses instead of generic query fallbacks.

Made-with: Cursor
Only derive sampling state from fallback series when sampling fields are present.
This prevents logs confidence footers from showing zero-count estimates.

Made-with: Cursor
@nsdeschenes
Copy link
Contributor Author

@cursor review

Copy link
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant