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(perf-issues): Add an option and project option to send occurrences to platform #45709

Merged
merged 3 commits into from
Mar 13, 2023

Conversation

udameli
Copy link
Contributor

@udameli udameli commented Mar 13, 2023

Create a system-wide and per-project options that would control whether a performance problem is sent to the occurrences platform. Both options need to be booleans since the options will be checked first in save_aggregate_performance and then in send_occurrence_to_platform and there's no reliable way to ensure that only one function gets run.

@udameli udameli requested a review from a team March 13, 2023 17:13
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 13, 2023
@@ -618,6 +619,14 @@ def put(self, request: Request, project) -> Response:
changed_proj_settings["sentry:performance_issue_creation_rate"] = result[
"performanceIssueCreationRate"
]
if "performanceIssueCreationThroughPlatform" in result:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll be adding a UI for this in a separate front-end PR

@udameli udameli merged commit 94d0d0d into master Mar 13, 2023
@udameli udameli deleted the du/feat/add-perf-issue-migration-option branch March 13, 2023 17:48
@@ -642,6 +642,9 @@
register("performance.issues.render_blocking_assets.fcp_ratio_threshold", default=0.33)
register("performance.issues.render_blocking_assets.size_threshold", default=1000000)

# System-wise option for performance issue creation through issues platform
register("performance.issues.send_to_issues_platform", default=False)
Copy link
Member

Choose a reason for hiding this comment

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

You can save yourself the trouble of creating a UI for this by adding , flags=FLAG_MODIFIABLE_BOOL to the definition. Then you can modify it here: https://sentry.io/_admin/options/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh this is awesome. added it here #45866

udameli added a commit that referenced this pull request Mar 23, 2023
Use system and project options set in
#45709

Fixes #43975

---------

Co-authored-by: Dan Fuller <[email protected]>
@github-actions github-actions bot locked and limited conversation to collaborators Mar 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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