File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
src/sentry/dynamic_sampling/rules
tests/sentry/api/endpoints Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ class RuleType(Enum):
3131 BOOST_LATEST_RELEASES_RULE = "boostLatestRelease"
3232 IGNORE_HEALTH_CHECKS_RULE = "ignoreHealthChecks"
3333 BOOST_KEY_TRANSACTIONS_RULE = "boostKeyTransactions"
34+ BOOST_LOW_VOLUME_TRANSACTIONS = "boostLowVolumeTransactions"
3435
3536
3637DEFAULT_BIASES : List [ActivatableBias ] = [
@@ -41,12 +42,14 @@ class RuleType(Enum):
4142 },
4243 {"id" : RuleType .IGNORE_HEALTH_CHECKS_RULE .value , "active" : True },
4344 {"id" : RuleType .BOOST_KEY_TRANSACTIONS_RULE .value , "active" : True },
45+ {"id" : RuleType .BOOST_LOW_VOLUME_TRANSACTIONS .value , "active" : False },
4446]
4547RESERVED_IDS = {
4648 RuleType .UNIFORM_RULE : 1000 ,
4749 RuleType .BOOST_ENVIRONMENTS_RULE : 1001 ,
4850 RuleType .IGNORE_HEALTH_CHECKS_RULE : 1002 ,
4951 RuleType .BOOST_KEY_TRANSACTIONS_RULE : 1003 ,
52+ RuleType .BOOST_LOW_VOLUME_TRANSACTIONS : 1400 ,
5053 RuleType .BOOST_LATEST_RELEASES_RULE : 1500 ,
5154}
5255REVERSE_RESERVED_IDS = {value : key for key , value in RESERVED_IDS .items ()}
Original file line number Diff line number Diff line change @@ -1325,6 +1325,7 @@ def test_get_dynamic_sampling_biases_manually_set_biases(self):
13251325 },
13261326 {"id" : "ignoreHealthChecks" , "active" : True },
13271327 {"id" : "boostKeyTransactions" , "active" : True },
1328+ {"id" : "boostLowVolumeTransactions" , "active" : False },
13281329 ]
13291330
13301331 def test_get_dynamic_sampling_biases_with_previously_assigned_biases (self ):
@@ -1351,6 +1352,7 @@ def test_get_dynamic_sampling_biases_with_previously_assigned_biases(self):
13511352 },
13521353 {"id" : "ignoreHealthChecks" , "active" : True },
13531354 {"id" : "boostKeyTransactions" , "active" : True },
1355+ {"id" : "boostLowVolumeTransactions" , "active" : False },
13541356 ]
13551357
13561358 def test_dynamic_sampling_bias_activation (self ):
@@ -1468,6 +1470,7 @@ def test_put_new_dynamic_sampling_rules_with_correct_flags(self):
14681470 },
14691471 {"id" : "ignoreHealthChecks" , "active" : False },
14701472 {"id" : "boostKeyTransactions" , "active" : False },
1473+ {"id" : "boostLowVolumeTransactions" , "active" : False },
14711474 ]
14721475 with Feature (
14731476 {
You can’t perform that action at this time.
0 commit comments