feat(android): expose tombstone options via SentryOptions.Native #5226
1 issue
find-bugs: Found 1 issue (1 high)
High
ReportHistoricalTombstones is incorrectly mapped to ReportHistoricalAnrs - `src/Sentry/Platforms/Android/SentrySdk.cs:160`
The new managed option options.Native.ReportHistoricalTombstones is assigned to the Java SDK's o.ReportHistoricalAnrs field. ANRs (Application Not Responding) and tombstones are distinct Android crash-reporting concepts in the Sentry Java SDK. As a result, toggling ReportHistoricalTombstones will silently change historical ANR reporting behavior instead of (or in addition to) historical tombstone behavior, and any actual historical-tombstone Java option remains unconfigured. This also conflicts with the documentation on NativeOptions.ReportHistoricalTombstones which states it controls historical tombstones.
⏱ 55.1s · 263.5k in / 2.7k out · $0.88 (+verification: $0.54)
Annotations
Check failure on line 160 in src/Sentry/Platforms/Android/SentrySdk.cs
sentry-warden / warden: find-bugs
ReportHistoricalTombstones is incorrectly mapped to ReportHistoricalAnrs
The new managed option `options.Native.ReportHistoricalTombstones` is assigned to the Java SDK's `o.ReportHistoricalAnrs` field. ANRs (Application Not Responding) and tombstones are distinct Android crash-reporting concepts in the Sentry Java SDK. As a result, toggling `ReportHistoricalTombstones` will silently change historical ANR reporting behavior instead of (or in addition to) historical tombstone behavior, and any actual historical-tombstone Java option remains unconfigured. This also conflicts with the documentation on `NativeOptions.ReportHistoricalTombstones` which states it controls historical tombstones.