Skip to content

feat(issues): Hide package and address for non-native frames in mixed stacktraces#107318

Draft
markushi wants to merge 2 commits intomasterfrom
markushi/feat/hide-native-attrs-for-mixed-stacktraces
Draft

feat(issues): Hide package and address for non-native frames in mixed stacktraces#107318
markushi wants to merge 2 commits intomasterfrom
markushi/feat/hide-native-attrs-for-mixed-stacktraces

Conversation

@markushi
Copy link
Member

In mixed stacktraces (e.g., Android NDK with both native and Java/Kotlin frames), native-specific attributes like package names and instruction addresses are not meaningful for non-native frames and add visual clutter.

This change conditionally displays these attributes based on the frame's platform. The frame.platform property takes precedence over the event platform when determining whether to show native debugging information, ensuring that Java, Kotlin, and JavaScript frames display cleanly without confusing native-only details.

Changes:

  • Add isNativePlatform() utility to identify native platforms
  • Conditionally render package and instruction address fields in NativeFrame component
  • Add comprehensive test coverage for mixed stacktrace scenarios

… stacktraces

In mixed stacktraces, native attributes like package names and instruction
addresses are not meaningful for non-native frames (Java, Kotlin, JavaScript).
This conditionally hides these attributes based on frame.platform, ensuring
cleaner display in Android NDK and similar mixed-platform stacktraces.
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jan 30, 2026
Update getStacktracePlatform to prioritize the event platform when
present in any frame, before falling back to the first frame with
a different platform. This ensures native information (package and
address) is only shown for truly native frames in mixed stacktraces.

Restructure nativeFrame layout to consistently wrap native-specific
elements, making the conditional rendering logic clearer and more
maintainable.

Add test coverage for the updated platform detection logic.
@linear
Copy link

linear bot commented Jan 30, 2026

@getsantry
Copy link
Contributor

getsantry bot commented Feb 21, 2026

This pull request has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you add the label WIP, I will leave it alone unless WIP is removed ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components Stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant