diff --git a/src/sentry/api/helpers/actionable_items_helper.py b/src/sentry/api/helpers/actionable_items_helper.py index f66d12cb3cff3f..091e65a4c327cb 100644 --- a/src/sentry/api/helpers/actionable_items_helper.py +++ b/src/sentry/api/helpers/actionable_items_helper.py @@ -40,6 +40,7 @@ class ActionPriority: EventError.NATIVE_MISSING_DSYM: ActionPriority.LOW, EventError.NATIVE_INTERNAL_FAILURE: ActionPriority.LOW, EventError.NATIVE_SYMBOLICATOR_FAILED: ActionPriority.LOW, + EventError.NATIVE_UNSUPPORTED_DSYM: ActionPriority.LOW, EventError.NATIVE_MISSING_OPTIONALLY_BUNDLED_DSYM: ActionPriority.LOW, EventError.PAST_TIMESTAMP: ActionPriority.LOW, EventError.PROGUARD_MISSING_LINENO: ActionPriority.LOW, diff --git a/src/sentry/lang/native/error.py b/src/sentry/lang/native/error.py index 557574b86e0ca7..35f643b4b25add 100644 --- a/src/sentry/lang/native/error.py +++ b/src/sentry/lang/native/error.py @@ -15,6 +15,12 @@ EventError.NATIVE_MISSING_DSYM, EventError.NATIVE_MISSING_OPTIONALLY_BUNDLED_DSYM, EventError.NATIVE_BAD_DSYM, + # We tried to use a debug file for a purpose it doesn't support. + # Currently this only happens when trying to symbolicate a + # CLR (.NET) event with a Windows PDB file. The tracking issue + # for supporting this is + # https://github.com/getsentry/team-ingest/issues/550. + EventError.NATIVE_UNSUPPORTED_DSYM, EventError.NATIVE_MISSING_SYMBOL, EventError.FETCH_GENERIC_ERROR, # Emitted for e.g. broken minidumps diff --git a/src/sentry/lang/native/processing.py b/src/sentry/lang/native/processing.py index 70497f056ca24a..7b8b9d931f0c60 100644 --- a/src/sentry/lang/native/processing.py +++ b/src/sentry/lang/native/processing.py @@ -99,6 +99,8 @@ def _merge_frame(new_frame, symbolicated, platform="native"): def _handle_image_status(status, image, os, data): if status in ("found", "unused"): return + elif status == "unsupported": + error = SymbolicationFailed(type=EventError.NATIVE_UNSUPPORTED_DSYM) elif status == "missing": package = image.get("code_file") if not package: diff --git a/src/sentry/models/eventerror.py b/src/sentry/models/eventerror.py index 57aea08dc4fd59..6368a5444c982a 100644 --- a/src/sentry/models/eventerror.py +++ b/src/sentry/models/eventerror.py @@ -48,6 +48,7 @@ class EventError: NATIVE_SIMULATOR_FRAME = "native_simulator_frame" NATIVE_UNKNOWN_IMAGE = "native_unknown_image" NATIVE_SYMBOLICATOR_FAILED = "native_symbolicator_failed" + NATIVE_UNSUPPORTED_DSYM = "native_unsupported_dsym" # Processing: Proguard PROGUARD_MISSING_MAPPING = "proguard_missing_mapping"