Fixes
- Fix ANRs when collecting device context (#4970)
- IMPORTANT: This disables collecting external storage size (total/free) by default, to enable it back
useoptions.isCollectExternalStorageContext = trueor<meta-data android:name="io.sentry.external-storage-context" android:value="true" />
- IMPORTANT: This disables collecting external storage size (total/free) by default, to enable it back
- Fix
NullPointerExceptionwhen reading ANR marker (#4979) - Report discarded log in batch processor as
log_byte(#4971)
Improvements
- Expose
MAX_EVENT_SIZE_BYTESconstant in SentryOptions (#4962) - Discard envelopes on
4xxand5xxresponse (#4950)- This aims to not overwhelm Sentry after an outage or load shedding (including HTTP 429) where too many events are sent at once
Feature
- Add a Tombstone integration that detects native crashes without relying on the NDK integration, but instead using
ApplicationExitInfo.REASON_CRASH_NATIVEon Android 12+. (#4933)- Currently exposed via options as an internal API only.
- If enabled alongside the NDK integration, crashes will be reported as two separate events. Users should enable only one; deduplication between both integrations will be added in a future release.
- Add Sentry Metrics to Java SDK (#5026)
- Metrics are enabled by default
- APIs are namespaced under
Sentry.metrics() - We offer the following APIs:
count: A metric that increments countsgauge: A metric that tracks a value that can go up or downdistribution: A metric that tracks the statistical distribution of values
- For more details, see the Metrics documentation: https://docs.sentry.io/product/explore/metrics/getting-started/