Skip to content

Commit be9009a

Browse files
authored
chore(dynamic sampling): emit a metric when boost_low_volume_projects_of_org was run successfully (#97671)
1 parent 3fee51c commit be9009a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/sentry/dynamic_sampling/tasks/boost_low_volume_projects.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,17 @@ def boost_low_volume_projects_of_org(
283283
)
284284
if rebalanced_projects is not None:
285285
store_rebalanced_projects(org_id, rebalanced_projects)
286+
metrics.incr(
287+
"dynamic_sampling.boost_low_volume_projects_of_org.success",
288+
tags={"type": "rebalanced"},
289+
sample_rate=1,
290+
)
291+
else:
292+
metrics.incr(
293+
"dynamic_sampling.boost_low_volume_projects_of_org.success",
294+
tags={"type": "not_rebalanced"},
295+
sample_rate=1,
296+
)
286297

287298

288299
def fetch_projects_with_total_root_transaction_count_and_rates(

0 commit comments

Comments
 (0)