-
-
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(perf-issues): Add an option and project option to send occurrences to platform #45709
Conversation
@@ -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: |
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.
I'll be adding a UI for this in a separate front-end PR
@@ -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) |
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.
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/
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.
oh this is awesome. added it here #45866
Use system and project options set in #45709 Fixes #43975 --------- Co-authored-by: Dan Fuller <[email protected]>
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 insend_occurrence_to_platform
and there's no reliable way to ensure that only one function gets run.