Skip to content

Commit 62d20e4

Browse files
authored
chore(aci): add logging for plugin notifications (#88342)
add logging to verify that plugin notifications even work in the current world
1 parent 4e9d0fb commit 62d20e4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/sentry/rules/actions/notify_event_service.py

+6
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ def after(
180180
return
181181

182182
if plugin:
183+
extra["plugin"] = service
184+
183185
if not plugin.is_enabled(self.project):
184186
extra["project_id"] = self.project.id
185187
self.logger.info("rules.fail.is_enabled", extra=extra)
@@ -192,6 +194,10 @@ def after(
192194
self.logger.info("rule.fail.should_notify", extra=extra)
193195
return
194196

197+
extra["organization_id"] = self.project.organization_id
198+
extra["project_id"] = self.project.id
199+
self.logger.info("rules.plugin_notification_sent", extra=extra)
200+
195201
metrics.incr("notifications.sent", instance=plugin.slug, skip_internal=False)
196202
yield self.future(plugin.rule_notify)
197203

0 commit comments

Comments
 (0)