Skip to content

Commit

Permalink
fix(actions/sentry/__init__.py): apply fingerprint rules to group iss…
Browse files Browse the repository at this point in the history
…ues better (#455)

This allows for grouping issues by title, when it may contain pattern recognizable
via sentry and pattern values are ignored.
  • Loading branch information
gutsytechster authored Oct 10, 2024
1 parent d7d553a commit 29095ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spidermon/contrib/actions/sentry/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,13 @@ def send_message(self, message):
scope.set_extra("failed_monitors", message.get("failed_monitors", []))

sentry_client.capture_event(
{
event={
"message": "{title} \n {description}".format(
title=message.get("title"),
description=message.get("failure_reasons", ""),
),
"level": self.sentry_log_level,
"fingerprint": [message.get("title")],
},
scope=scope,
)
Expand Down

0 comments on commit 29095ed

Please sign in to comment.