Skip to content

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

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant