Skip to content

feat(android): Add nativeStackAndroid support to NativeLinkedErrors#6278

Merged
lucas-zimerman merged 7 commits into
mainfrom
lz/nativeStackAndroid
Jun 15, 2026
Merged

feat(android): Add nativeStackAndroid support to NativeLinkedErrors#6278
lucas-zimerman merged 7 commits into
mainfrom
lz/nativeStackAndroid

Conversation

@lucas-zimerman

@lucas-zimerman lucas-zimerman commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

Captures the JVM stack trace attached to rejected native module promises as a linked exception, so the Java cause of a rejected promise is reported alongside the JS error.

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

Android Promise rejections were previously captured by Sentry, but lacked stacktrace on it.

💡 Motivation and Context

To close #3257

💚 How did you test it?

Locally with addition of promise rejection button on sample app

Before

https://sentry-sdks.sentry.io/issues/7547068866
image

After
https://sentry-sdks.sentry.io/issues/7547000366
image

📝 Checklist

  • I added tests to verify changes
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • All tests passing
  • No breaking changes

🔮 Next steps

Close #3257

Captures the JVM stack trace attached to rejected native module promises
as a linked exception, so the Java cause of a rejected promise is reported
alongside the JS error.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Semver Impact of This PR

None (no version bump detected)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


  • feat(android): Add nativeStackAndroid support to NativeLinkedErrors by lucas-zimerman in #6278
  • chore(deps): bump ruby/setup-ruby from 1.310.0 to 1.313.0 by dependabot in #6282
  • chore(deps): update Maestro to v2.6.1 by github-actions in #6277
  • chore(deps): bump gradle/actions from 6.1.0 to 6.2.0 by dependabot in #6284
  • chore(deps): bump getsentry/craft from 2.26.8 to 2.26.10 by dependabot in #6283
  • chore(deps): bump getsentry/craft/.github/workflows/changelog-preview.yml from 2.26.8 to 2.26.10 by dependabot in #6281
  • chore(deps): update Sentry Android Gradle Plugin to v6.11.0 by github-actions in #6275
  • chore(deps): update Android SDK to v8.43.2 by github-actions in #6273
  • chore(deps): bump joi from 17.13.3 to 17.13.4 by dependabot in #6279
  • chore(deps): update Cocoa SDK to v9.17.1 by github-actions in #6272
  • docs(replay): clarify fast renderer option docs by leohara in #6276
  • feat(core): Warn when multiple versions of Sentry JS SDK are detected by antonis in #6269

🤖 This preview updates automatically when you update the PR.

@github-actions

github-actions Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 09eb7fd

@lucas-zimerman lucas-zimerman marked this pull request as ready for review June 12, 2026 17:47
Comment thread packages/core/src/js/integrations/nativelinkederrors.ts
Comment thread CHANGELOG.md Outdated
Comment thread CHANGELOG.md Outdated

@antonis antonis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀
Let's fix the changelog before merging

lucas-zimerman and others added 2 commits June 15, 2026 12:36
Co-authored-by: Antonis Lilis <antonis.lilis@sentry.io>
Co-authored-by: Antonis Lilis <antonis.lilis@sentry.io>
@lucas-zimerman lucas-zimerman added the ready-to-merge Triggers the full CI test suite label Jun 15, 2026
@lucas-zimerman lucas-zimerman enabled auto-merge (squash) June 15, 2026 11:37
Comment thread packages/core/src/js/integrations/nativelinkederrors.ts
@sentry

sentry Bot commented Jun 15, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
Sentry RN io.sentry.reactnative.sample 8.14.0 (91) Release

⚙️ sentry-react-native Build Distribution Settings

@lucas-zimerman lucas-zimerman merged commit 37a2091 into main Jun 15, 2026
51 of 82 checks passed
@lucas-zimerman lucas-zimerman deleted the lz/nativeStackAndroid branch June 15, 2026 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge Triggers the full CI test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for nativeStackAndroid for user rejected Android Promises

2 participants