Sentry v8.31.0 Release Notes
Release Date: 2026-01-21 // 25 days ago-
🔋 Features
- ➕ Added
io.sentry.ndk.sdk-nameAndroid manifest option to configure the native SDK's name (#5027) - Replace
sentry.trace.parent_span_idattribute withspanIdproperty onSentryLogEvent(#5040)
🛠 Fixes
- 🔊 Only attach user attributes to logs if
sendDefaultPiiis enabled (#5036) - 🔊 Reject new logs if
LoggerBatchProcessoris shutting down (#5041) - ⬇️ Downgrade protobuf-javalite dependency from 4.33.1 to 3.25.8 (#5044)
Dependencies
- ➕ Added
Previous changes from v8.30.0
-
🛠 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/