Sentry v8.31.0 Release Notes

Release Date: 2026-01-21 // 25 days ago
  • 🔋 Features

    • ➕ Added io.sentry.ndk.sdk-name Android manifest option to configure the native SDK's name (#5027)
    • Replace sentry.trace.parent_span_id attribute with spanId property on SentryLogEvent (#5040)

    🛠 Fixes

    • 🔊 Only attach user attributes to logs if sendDefaultPii is enabled (#5036)
    • 🔊 Reject new logs if LoggerBatchProcessor is shutting down (#5041)
    • ⬇️ Downgrade protobuf-javalite dependency from 4.33.1 to 3.25.8 (#5044)

    Dependencies


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
        👉 use options.isCollectExternalStorageContext = true or <meta-data android:name="io.sentry.external-storage-context" android:value="true" />
    • 🛠 Fix NullPointerException when reading ANR marker (#4979)

    • 🌲 Report discarded log in batch processor as log_byte (#4971)

    👌 Improvements

    • Expose MAX_EVENT_SIZE_BYTES constant in SentryOptions (#4962)
    • Discard envelopes on 4xx and 5xx response (#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_NATIVE on 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 counts
      • gauge: A metric that tracks a value that can go up or down
      • distribution: 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/