-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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(rpc): Add top events support #81217
Conversation
wmak
commented
Nov 22, 2024
•
edited
Loading
edited
- This allows the usage of top_events with the useRpc param
- This allows the usage of top_events with the useRpc param
Codecov ReportAttention: Patch coverage is ✅ All tests successful. No failed tests found.
Additional details and impacted files@@ Coverage Diff @@
## master #81217 +/- ##
==========================================
+ Coverage 80.35% 80.36% +0.01%
==========================================
Files 7219 7218 -1
Lines 319567 319540 -27
Branches 20769 20744 -25
==========================================
+ Hits 256780 256801 +21
+ Misses 62393 62347 -46
+ Partials 394 392 -2 |
src/sentry/search/eap/spans.py
Outdated
@@ -259,6 +224,40 @@ def _resolve_terms(self, terms: event_filter.ParsedTerms) -> TraceItemFilter | N | |||
else: | |||
return None | |||
|
|||
def resolve_term(self, term: event_search.SearchFilter) -> TraceItemFilter | None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesnt look like it can return None
right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, that cleans up typing a bit
rpc_response = snuba_rpc.timeseries_rpc(rpc_request) | ||
other_response = snuba_rpc.timeseries_rpc(other_request) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we have a way to run these queries in parallel?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True i'll add that in a follow up