@@ -73,26 +73,28 @@ def _event_content_is_seer_eligible(event: Event) -> bool:
73
73
"""
74
74
Determine if an event's contents makes it fit for using with Seer's similar issues model.
75
75
"""
76
+ platform = event .platform
77
+
76
78
if not event_content_has_stacktrace (event ):
77
79
metrics .incr (
78
80
"grouping.similarity.event_content_seer_eligible" ,
79
81
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" },
81
83
)
82
84
return False
83
85
84
86
if event .platform in SEER_INELIGIBLE_EVENT_PLATFORMS :
85
87
metrics .incr (
86
88
"grouping.similarity.event_content_seer_eligible" ,
87
89
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" },
89
91
)
90
92
return False
91
93
92
94
metrics .incr (
93
95
"grouping.similarity.event_content_seer_eligible" ,
94
96
sample_rate = options .get ("seer.similarity.metrics_sample_rate" ),
95
- tags = {"eligible" : True , "blocker" : "none" },
97
+ tags = {"platform" : platform , " eligible" : True , "blocker" : "none" },
96
98
)
97
99
return True
98
100
0 commit comments