Skip to content

Commit 2125c0f

Browse files
committed
add platform tag to event_content_seer_eligible metric
1 parent dae2b1d commit 2125c0f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/sentry/grouping/ingest/seer.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,26 +73,28 @@ def _event_content_is_seer_eligible(event: Event) -> bool:
7373
"""
7474
Determine if an event's contents makes it fit for using with Seer's similar issues model.
7575
"""
76+
platform = event.platform
77+
7678
if not event_content_has_stacktrace(event):
7779
metrics.incr(
7880
"grouping.similarity.event_content_seer_eligible",
7981
sample_rate=options.get("seer.similarity.metrics_sample_rate"),
80-
tags={"eligible": False, "blocker": "no-stacktrace"},
82+
tags={"platform": platform, "eligible": False, "blocker": "no-stacktrace"},
8183
)
8284
return False
8385

8486
if event.platform in SEER_INELIGIBLE_EVENT_PLATFORMS:
8587
metrics.incr(
8688
"grouping.similarity.event_content_seer_eligible",
8789
sample_rate=options.get("seer.similarity.metrics_sample_rate"),
88-
tags={"eligible": False, "blocker": "unsupported-platform"},
90+
tags={"platform": platform, "eligible": False, "blocker": "unsupported-platform"},
8991
)
9092
return False
9193

9294
metrics.incr(
9395
"grouping.similarity.event_content_seer_eligible",
9496
sample_rate=options.get("seer.similarity.metrics_sample_rate"),
95-
tags={"eligible": True, "blocker": "none"},
97+
tags={"platform": platform, "eligible": True, "blocker": "none"},
9698
)
9799
return True
98100

0 commit comments

Comments
 (0)