From 9c8b9fb1ea031ed7ece543eda2516c69a1331d89 Mon Sep 17 00:00:00 2001 From: Evan Purkhiser Date: Fri, 15 Nov 2024 12:58:21 -0500 Subject: [PATCH] feat(crons): Add decision logs --- src/sentry/monitors/system_incidents.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/sentry/monitors/system_incidents.py b/src/sentry/monitors/system_incidents.py index 8d2b6d93fb248b..b13d295d2a0783 100644 --- a/src/sentry/monitors/system_incidents.py +++ b/src/sentry/monitors/system_incidents.py @@ -402,6 +402,15 @@ def make_decision( pipeline.expire(decision_key, MONITOR_VOLUME_RETENTION) pipeline.execute() + logger.info( + "monitors.system_incidents.decision", + extra={ + "reference_datetime": str(tick), + "decision": decision, + "transition": transition, + }, + ) + return DecisionResult(decision, transition) def metrics_match(metric: Metric) -> Generator[bool]: