-
-
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
snuba(devexp): Migrate meta queries to use storage direct queries #70794
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #70794 +/- ##
===========================================
- Coverage 88.30% 80.00% -8.30%
===========================================
Files 2861 6507 +3646
Lines 178774 290843 +112069
Branches 31900 50129 +18229
===========================================
+ Hits 157862 232698 +74836
- Misses 20910 57713 +36803
- Partials 2 432 +430
|
OrderBy(Column("project_id"), Direction.ASC), | ||
OrderBy(Column(column_name), Direction.ASC), | ||
] | ||
if in_random_rollout("sentry-metrics.metrics-layer.use-storage-direct-meta-queries"): |
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.
where you able to run the CI tests using the storage-direct-meta-queries on?
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.
Tested on CI with flag enabled 👍
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.
Looks good. If we can run CI with this flag on that would be even better
Overview
Now that snuba supports querying a storage directly (as opposed to querying an entity), meta queries are a great candidate to take advantage of this. All meta queries are executed through the metrics layer, therefore these changes will apply to any product (right now just DDM) running meta queries. The main change is switching out
Entity
forStorage
in thematch
clause of the query.Testing
This change is guarded behind the sentry option:
sentry-metrics.metrics-layer.use-storage-direct-meta-queries
and will be slowly rolled out + monitored.