Skip to content

feat(android): expose tombstone options via SentryOptions.Native#5226

Open
jamescrosswell wants to merge 3 commits into
mainfrom
feat/issue-5027-android-tombstone
Open

feat(android): expose tombstone options via SentryOptions.Native#5226
jamescrosswell wants to merge 3 commits into
mainfrom
feat/issue-5027-android-tombstone

Conversation

@jamescrosswell
Copy link
Copy Markdown
Collaborator

@jamescrosswell jamescrosswell commented May 12, 2026

Summary

  • Adds TombstoneEnabled and ReportHistoricalTombstones to SentryOptions.NativeOptions (Android)
  • Adds corresponding nullable bindable options in BindableSentryOptions.NativeOptions
  • Applies bindable config values in ApplyTo
  • Maps both options into Java SentryAndroidOptions during Android SDK init

Why

Implements #5027 by exposing Android Java SDK tombstone controls through .NET native options.

Testing

  • dotnet build src/Sentry/Sentry.csproj -f net9.0-android35.0 -v minimal
  • dotnet test test/Sentry.Tests/Sentry.Tests.csproj -f net9.0-android35.0 --no-restore --filter "FullyQualifiedName~Platforms.Android.BindableNativeOptionsTests" -v normal

Closes #5027

Adds TombstoneEnabled and ReportHistoricalTombstones to SentryOptions.NativeOptions and bindable Android native options, then maps them to SentryAndroidOptions.

Closes #5027

Co-Authored-By: Justice <agent-noreply@example.com>
Comment thread src/Sentry/Platforms/Android/SentrySdk.cs Outdated
Use ReportHistoricalTombstones instead of ReportHistoricalAnrs when applying NativeOptions.ReportHistoricalTombstones.

Co-Authored-By: Justice <agent-noreply@example.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented May 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.13%. Comparing base (32a55e3) to head (e7a2b7f).
⚠️ Report is 25 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5226      +/-   ##
==========================================
+ Coverage   74.06%   74.13%   +0.07%     
==========================================
  Files         501      508       +7     
  Lines       18113    18282     +169     
  Branches     3521     3574      +53     
==========================================
+ Hits        13415    13553     +138     
- Misses       3838     3860      +22     
- Partials      860      869       +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jamescrosswell jamescrosswell marked this pull request as ready for review May 13, 2026 01:20
@jamescrosswell jamescrosswell requested a review from Flash0ver as a code owner May 13, 2026 01:20
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit f995180. Configure here.

Comment thread src/Sentry/Platforms/Android/NativeOptions.cs Outdated
Comment thread src/Sentry/Platforms/Android/NativeOptions.cs Outdated
Set Native.TombstoneEnabled and Native.ReportHistoricalTombstones defaults to false, and update XML docs to match Java SDK behavior.

Co-Authored-By: Justice <agent-noreply@example.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose IsTombstoneEnabled on options.Native for Android

1 participant