Skip to content

Commit

Permalink
ref(perf-issues): Add projectoption for enabling individual detector (#…
Browse files Browse the repository at this point in the history
…41328)

### Summary
The settings for detectors are too complicated and we only really want
to expose a simple toggle. I plan on adding this new project option and
removing the old project option settings for independent threshold
changes, to make this system a little more simple. Basically all
detectors will have their issue creation gated by a series of project
options booleans.
  • Loading branch information
k-fish committed Nov 15, 2022
1 parent 9ba88e4 commit de3e634
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sentry/projectoptions/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,6 @@
"n_plus_one_db_duration_threshold": 500,
},
)

# Using simple bools instead of rates for disabling individual detectors
register(key="sentry:performance_issue_creation_enabled_n_plus_one_db", default=True)

0 comments on commit de3e634

Please sign in to comment.