Skip to content

Commit c041e00

Browse files
authored
fix(monitors): Manually send slug as tag (#47125)
Manually sends monitor slug as a tag, not a long term fix.
1 parent 459d2dc commit c041e00

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/sentry/monitors/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,9 +397,9 @@ def mark_failed(self, last_checkin=None, reason=MonitorFailure.UNKNOWN):
397397
"contexts": {"monitor": get_monitor_environment_context(self)},
398398
"fingerprint": ["monitor", str(self.monitor.guid), reason],
399399
"environment": self.environment.name,
400-
"tags": {
401-
"monitor.id": str(self.monitor.guid),
402-
},
400+
# TODO: Both of these values should be get transformed from context to tags
401+
# We should understand why that is not happening and remove these when it correctly is
402+
"tags": {"monitor.id": str(self.monitor.guid), "monitor.slug": self.monitor.slug},
403403
},
404404
project=Project(id=self.monitor.project_id),
405405
)

0 commit comments

Comments
 (0)