File tree Expand file tree Collapse file tree 1 file changed +21
-3
lines changed
src/sentry/dynamic_sampling/tasks Expand file tree Collapse file tree 1 file changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -251,9 +251,27 @@ def boost_low_volume_projects_of_org(
251
251
organization ID. Transaction counts and rates have to be provided.
252
252
"""
253
253
254
- rebalanced_projects = calculate_sample_rates_of_projects (
255
- org_id , projects_with_tx_count_and_rates
256
- )
254
+ org = Organization .objects .get_from_cache (id = org_id )
255
+ if features .has ("organizations:log-project-config" , org ):
256
+ logger .info (
257
+ "log-project-config: Starting boost_low_volume_projects_of_org for org %s" ,
258
+ org_id ,
259
+ extra = {"org_id" : org_id },
260
+ )
261
+
262
+ try :
263
+ rebalanced_projects = calculate_sample_rates_of_projects (
264
+ org_id , projects_with_tx_count_and_rates
265
+ )
266
+ except Exception as e :
267
+ if features .has ("organizations:log-project-config" , org ):
268
+ logger .info (
269
+ "log-project-config: Error calculating sample rates of for org %s" ,
270
+ org_id ,
271
+ extra = {"org_id" : org_id },
272
+ )
273
+ sentry_sdk .capture_exception (e )
274
+ raise
257
275
258
276
logger .info (
259
277
"boost_low_volume_projects_of_org" ,
You can’t perform that action at this time.
0 commit comments