-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat(trace-view): Update trace-view to use snql #29709
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
Conversation
- Mostly straightforward, using datasets instead of `event.type` filters which cleans up the queries a bit, but otherwise the queries are mostly identical - Using a separate feature flag so I can start rolling out Discover SnQL without impacting performance too
| default_manager.add("organizations:performance-chart-interpolation", OrganizationFeature, True) | ||
| default_manager.add("organizations:performance-events-page", OrganizationFeature, True) | ||
| default_manager.add("organizations:performance-landing-widgets", OrganizationFeature, True) | ||
| default_manager.add("organizations:performance-mobile-vitals", OrganizationFeature, True) | ||
| default_manager.add("organizations:performance-ops-breakdown", OrganizationFeature) | ||
| default_manager.add("organizations:performance-suspect-spans-view", OrganizationFeature, True) | ||
| default_manager.add("organizations:performance-tag-explorer", OrganizationFeature, True) | ||
| default_manager.add("organizations:performance-tag-page", OrganizationFeature, True) | ||
| default_manager.add("organizations:performance-events-page", OrganizationFeature, True) | ||
| default_manager.add("organizations:performance-chart-interpolation", OrganizationFeature, True) | ||
| default_manager.add("organizations:performance-suspect-spans-view", OrganizationFeature, True) | ||
| default_manager.add("organizations:performance-use-snql", OrganizationFeature, True) |
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.
Sorted these which is why there's additional diffs
| ) | ||
| results = bulk_snql_query( | ||
| [transaction_query.get_snql_query(), error_query.get_snql_query()], | ||
| referrer="api.trace-view.get-events", |
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.
Feel free to ignore this but using the same referrer for each of the bulk queries has been a pet peeve of mine since the two queries are different but we have no way of distinguishing between the two in the transaction.
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.
agreed, but the current bulk APIs don't support a way to provide >1 referrer yet. I have this mentally backlogged but let me create something in Jira
event.typefilterswhich cleans up the queries a bit, but otherwise the queries are
mostly identical
without impacting performance too