Skip to content

Commit 4bb54ba

Browse files
feat(crons): Add decision logs (#80835)
1 parent 216450c commit 4bb54ba

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/sentry/monitors/system_incidents.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,15 @@ def make_decision(
402402
pipeline.expire(decision_key, MONITOR_VOLUME_RETENTION)
403403
pipeline.execute()
404404

405+
logger.info(
406+
"monitors.system_incidents.decision",
407+
extra={
408+
"reference_datetime": str(tick),
409+
"decision": decision,
410+
"transition": transition,
411+
},
412+
)
413+
405414
return DecisionResult(decision, transition)
406415

407416
def metrics_match(metric: Metric) -> Generator[bool]:

0 commit comments

Comments
 (0)