Skip to content

Conversation

@wmak
Copy link
Member

@wmak wmak commented Nov 1, 2021

  • 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

- 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
@wmak wmak requested a review from a team November 1, 2021 22:45
@wmak wmak requested a review from a team as a code owner November 1, 2021 22:45
Comment on lines +117 to +125
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)
Copy link
Member Author

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",
Copy link
Member

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.

Copy link
Member Author

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

@wmak wmak enabled auto-merge (squash) November 2, 2021 21:07
@wmak wmak merged commit 31d5c37 into master Nov 2, 2021
@wmak wmak deleted the wmak/feat/trace-snql branch November 2, 2021 21:08
@github-actions github-actions bot locked and limited conversation to collaborators Nov 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants