Skip to content

Commit b0e8ec8

Browse files
committed
use VALID_PLATFORMS instead of ad-hoc event platform filtering
1 parent 1e25c0a commit b0e8ec8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sentry/event_manager.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@
164164

165165
SEER_ERROR_COUNT_KEY = ERROR_COUNT_CACHE_KEY("sentry.seer.severity-failures")
166166

167+
from sentry.constants import VALID_PLATFORMS
168+
167169

168170
@dataclass
169171
class GroupInfo:
@@ -702,7 +704,7 @@ def _pull_out_data(jobs: Sequence[Job], projects: ProjectsMapping) -> None:
702704
def _set_project_platform_if_needed(project: Project, event: Event) -> None:
703705
# Only infer the platform if it's useful - if the event platform is "other", null or a sample
704706
# event, there's no useful information for us to set the project platform
705-
if not event.platform or event.platform == "other" or event.get_tag("sample_event") == "yes":
707+
if event.platform in VALID_PLATFORMS:
706708
return
707709

708710
# Use a lock to prevent race conditions when multiple events are processed

0 commit comments

Comments
 (0)