From 75bd99f84af1c7a1f5c258452c7fdc433e3757a2 Mon Sep 17 00:00:00 2001 From: Philipp Hofmann Date: Thu, 13 Jul 2023 10:08:49 +0200 Subject: [PATCH] chore(sdk-crashes): Info on custom stacktrace rule (#52781) Add a comment on custom stack trace rule. --- src/sentry/utils/sdk_crashes/event_stripper.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sentry/utils/sdk_crashes/event_stripper.py b/src/sentry/utils/sdk_crashes/event_stripper.py index 72bec8cc6e42b..2b515dd7f57d8 100644 --- a/src/sentry/utils/sdk_crashes/event_stripper.py +++ b/src/sentry/utils/sdk_crashes/event_stripper.py @@ -164,6 +164,9 @@ def _strip_frames( """ def strip_frame(frame: MutableMapping[str, Any]) -> MutableMapping[str, Any]: + # Set in_app to True for SDK frames for grouping. Anyways the grouping config will set in_app false + # for all Cocoa SDK frames. To not change the grouping logic, we must add the following stacktrace + # rule `stack.abs_path:Sentry.framework +app` to the project with the ID SDK_CRASH_DETECTION_PROJECT_ID. if sdk_crash_detector.is_sdk_frame(frame): frame["in_app"] = True