Skip to content

Commit 3e3fc73

Browse files
committed
pre merge preps.
1 parent 3a78d01 commit 3e3fc73

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

CHANGELOG.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
- Add `installGroupsOverride` parameter and `installGroups` property to Build Distribution SDK ([#5062](https://github.com/getsentry/sentry-java/pull/5062))
88
- Update Android targetSdk to API 36 (Android 16) ([#5016](https://github.com/getsentry/sentry-java/pull/5016))
9-
- Merge Tombstone and Native SDK events into single crash event. ([#5037](https://github.com/getsentry/sentry-java/pull/5037))
109
- Add AndroidManifest support for Spotlight configuration via `io.sentry.spotlight.enable` and `io.sentry.spotlight.url` ([#5064](https://github.com/getsentry/sentry-java/pull/5064))
1110
- Collect database transaction spans (`BEGIN`, `COMMIT`, `ROLLBACK`) ([#5072](https://github.com/getsentry/sentry-java/pull/5072))
1211
- To enable creation of these spans, set `options.enableDatabaseTransactionTracing` to `true`
@@ -16,6 +15,20 @@
1615
sentry:
1716
enable-database-transaction-tracing: true
1817
```
18+
- Add support for collecting native crashes using Tombstones ([#4933](https://github.com/getsentry/sentry-java/pull/4933), [#5037](https://github.com/getsentry/sentry-java/pull/5037))
19+
- Added Tombstone integration that detects native crashes using `ApplicationExitInfo.REASON_CRASH_NATIVE` on Android 12+
20+
- Crashes enriched with Tombstones contain more crash details and detailed thread info
21+
- Tombstone and NDK integrations are now automatically merged into a single crash event, eliminating duplicate reports
22+
- To enable it, add the integration in your Sentry initialization:
23+
```kotlin
24+
SentryAndroid.init(context, options -> {
25+
options.isTombstoneEnabled = true
26+
})
27+
```
28+
or in the `AndroidManifest.xml` using:
29+
```xml
30+
<meta-data android:name="io.sentry.tombstone.enable" android:value="true" />
31+
```
1932

2033
### Fixes
2134

sentry-android-core/src/main/java/io/sentry/android/core/SentryAndroidOptions.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,6 @@ public void setAnrReportInDebug(boolean anrReportInDebug) {
321321
*
322322
* @param enableTombstone true for enabled and false for disabled
323323
*/
324-
@ApiStatus.Internal
325324
public void setTombstoneEnabled(boolean enableTombstone) {
326325
this.enableTombstone = enableTombstone;
327326
}
@@ -332,7 +331,6 @@ public void setTombstoneEnabled(boolean enableTombstone) {
332331
*
333332
* @return true if enabled or false otherwise
334333
*/
335-
@ApiStatus.Internal
336334
public boolean isTombstoneEnabled() {
337335
return enableTombstone;
338336
}
@@ -615,12 +613,10 @@ public void setReportHistoricalAnrs(final boolean reportHistoricalAnrs) {
615613
this.reportHistoricalAnrs = reportHistoricalAnrs;
616614
}
617615

618-
@ApiStatus.Internal
619616
public boolean isReportHistoricalTombstones() {
620617
return reportHistoricalTombstones;
621618
}
622619

623-
@ApiStatus.Internal
624620
public void setReportHistoricalTombstones(final boolean reportHistoricalTombstones) {
625621
this.reportHistoricalTombstones = reportHistoricalTombstones;
626622
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{"event_id":"9ec79c33ec9942ab8353589fcb2e04dc"}
2-
{"type":"event","length":123,"content_type":"application/json"}
2+
{"type":"event","length":122,"content_type":"application/json"}
33
{"event_id":"9ec79c33ec9942ab8353589fcb2e04dc","timestamp":"2023-07-15T10:30:00.000Z","platform":"native","level":"fatal"}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{"event_id":"9ec79c33ec9942ab8353589fcb2e04dc"}
22
{"type":"attachment","length":20,"filename":"log.txt","content_type":"text/plain"}
33
some attachment data
4-
{"type":"event","length":123,"content_type":"application/json"}
4+
{"type":"event","length":122,"content_type":"application/json"}
55
{"event_id":"9ec79c33ec9942ab8353589fcb2e04dc","timestamp":"2023-07-15T11:45:30.500Z","platform":"native","level":"fatal"}

0 commit comments

Comments
 (0)