Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(eap): Add downsampling to the api #88023

Merged
merged 9 commits into from
Mar 31, 2025
Merged

Conversation

wmak
Copy link
Member

@wmak wmak commented Mar 26, 2025

  • This updates the events/ api to accept a sampling param so we can make a preflight before trying the new best_effort
  • Tests are not really ready, but opening this for now so FE can start sorta testing at least

- This updates the events/ api to accept a sampling param so we can make
  a preflight before trying the new best_effort
- Tests are not really ready, but opening this for now so FE can start
  sorta testing at least
@wmak wmak requested a review from a team as a code owner March 26, 2025 20:04
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 26, 2025
Copy link
Member

@narsaynorath narsaynorath left a comment

Choose a reason for hiding this comment

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

Awesome, thanks for throwing this together so quick 🙏

Copy link

codecov bot commented Mar 26, 2025

Codecov Report

Attention: Patch coverage is 97.43590% with 1 line in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/sentry/search/eap/utils.py 88.88% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master   #88023       +/-   ##
===========================================
+ Coverage   42.13%   87.77%   +45.64%     
===========================================
  Files        9961     9995       +34     
  Lines      564258   565304     +1046     
  Branches    22256    22203       -53     
===========================================
+ Hits       237768   496223   +258455     
+ Misses     326067    68647   -257420     
- Partials      423      434       +11     

@@ -298,6 +300,7 @@ def run_top_events_timeseries_query(
limit,
referrer,
config,
None,
Copy link
Member

Choose a reason for hiding this comment

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

Is this intentional set to none for the top events timeseries? And the sampling mode be implemented for any timeseries queries?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, was trying to rush this out originally and only do it for /events/, i'll follow up with stats

@wmak wmak merged commit 31d8d03 into master Mar 31, 2025
48 checks passed
@wmak wmak deleted the wmak/feat/add-downsampling-to-api branch March 31, 2025 20:30
andrewshie-sentry pushed a commit that referenced this pull request Mar 31, 2025
- This updates the events/ api to accept a sampling param so we can make
a preflight before trying the new best_effort
- Tests are not really ready, but opening this for now so FE can start
sorta testing at least
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants