Skip to content

Commit 26c7fe3

Browse files
committed
save changes
1 parent b0e8ec8 commit 26c7fe3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/sentry/event_manager.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
LOG_LEVELS_MAP,
3939
MAX_TAG_VALUE_LENGTH,
4040
PLACEHOLDER_EVENT_TITLES,
41+
VALID_PLATFORMS,
4142
DataCategory,
4243
InsightModules,
4344
)
@@ -164,8 +165,6 @@
164165

165166
SEER_ERROR_COUNT_KEY = ERROR_COUNT_CACHE_KEY("sentry.seer.severity-failures")
166167

167-
from sentry.constants import VALID_PLATFORMS
168-
169168

170169
@dataclass
171170
class GroupInfo:
@@ -704,7 +703,7 @@ def _pull_out_data(jobs: Sequence[Job], projects: ProjectsMapping) -> None:
704703
def _set_project_platform_if_needed(project: Project, event: Event) -> None:
705704
# Only infer the platform if it's useful - if the event platform is "other", null or a sample
706705
# event, there's no useful information for us to set the project platform
707-
if event.platform in VALID_PLATFORMS:
706+
if event.platform not in VALID_PLATFORMS or event.get_tag("sample_event") == "yes":
708707
return
709708

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

0 commit comments

Comments
 (0)