Skip to content

Explore: exact totals for events, attributes and correlations - #508

Merged
righel merged 2 commits into
mainfrom
explore-exact-totals
Oct 29, 2026
Merged

righel merged 2 commits into
mainfrom
explore-exact-totals

Conversation

@righel

@righel righel commented Oct 29, 2026

Copy link
Copy Markdown
Collaborator

Why

Explore's Events, Attributes and Correlations tabs never showed more than 10,000 matches. OpenSearch only counts hits up to 10,000 unless a search asks for the exact total. The Indicators tab already asked for it, so it showed the real count.

Change

The event, attribute and correlation searches set track_total_hits: True. That's one line in each of search_events, search_attributes and search_correlations.

On a dev instance with 453,626 attributes and 44,612 correlations, both tabs now show those totals where they previously showed 10,000. Events also show their exact total (1,913 here).

Counting every match makes searches with more than 10,000 hits slightly slower; the indicators search already pays this cost.

🤖 Generated with Claude Code

OpenSearch counts hits up to 10,000 unless asked for the exact total, so
Explore's events, attributes and correlations tabs stopped at 10000 while
indicators (which already asked) showed the real count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@righel righel added the UI label Oct 29, 2026
@github-actions

Copy link
Copy Markdown

OpenAPI changes

No changes to the OpenAPI spec.

@codecov

codecov Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.74%. Comparing base (25277dc) to head (e92e6e6).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #508   +/-   ##
=======================================
  Coverage   88.74%   88.74%           
=======================================
  Files         295      295           
  Lines       35114    35114           
=======================================
  Hits        31163    31163           
  Misses       3951     3951           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@righel
righel merged commit 40deab6 into main Oct 29, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant