From 672086b3113773cdd236745810ceb04e40629067 Mon Sep 17 00:00:00 2001 From: Sebastian Zivota Date: Tue, 22 Jul 2025 10:10:50 +0200 Subject: [PATCH] feat(java): Mark frames with synthesized methods As of https://github.com/getsentry/symbolicator/pull/1735 Symbolicator returns a flag on Java stackframes with synthesized methods. We carry over this flag and additionally mark such frames as not in-app. --- src/sentry/lang/java/processing.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/sentry/lang/java/processing.py b/src/sentry/lang/java/processing.py index 35e82a99cb687c..3e24c8453621e0 100644 --- a/src/sentry/lang/java/processing.py +++ b/src/sentry/lang/java/processing.py @@ -78,6 +78,12 @@ def _merge_frame(new_frame: dict[str, Any], symbolicated: dict[str, Any]) -> Non if symbolicated.get("post_context"): new_frame["post_context"] = symbolicated["post_context"] + # Frames with synthesized methods were made up by the compiler, + # so we mark them as not in app. + if symbolicated.get("method_synthesized"): + new_frame["method_synthesized"] = True + new_frame["in_app"] = False + def _handles_frame(frame: dict[str, Any], platform: str) -> bool: "Returns whether the frame should be symbolicated by JVM symbolication."