Skip to content

Conversation

@github-actions
Copy link
Contributor

Bumps modules/sentry-java from 8.29.0 to 8.30.0.

Auto-generated by a dependency updater.

Changelog

8.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/

@bruno-garcia bruno-garcia force-pushed the deps/modules/sentry-java/8.30.0 branch from 5944c76 to dc77982 Compare January 16, 2026 03:29
@@ -1 +1 @@
Subproject commit 216800f66268fc6fb1daca4f34ec4db4dbcc7c3f
Subproject commit c0cc0fa4467a1c7a6b8600faaceed57af5569158
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The updated Java SDK may enable metrics by default, but the Unity SDK does not explicitly disable it, potentially causing unintended data collection on Android.
Severity: MEDIUM

Suggested Fix

Verify if sentry-java v8.30.0 enables metrics by default. If it does, explicitly disable the feature in the Unity SDK's Android configuration (e.g., in SentryJava.cs via setEnableMetrics(false)) to prevent unintended behavior. Consider adding a corresponding option to SentryUnityOptions.cs for user control.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: modules/sentry-java#L1

Potential issue: The update to the `sentry-java` dependency is believed to enable the
Sentry Metrics feature by default. The Unity SDK's Android integration does not
explicitly configure or disable this feature in `SentryJava.cs` or
`AndroidManifestConfiguration.cs`. This is inconsistent with the established pattern of
explicitly disabling other Java SDK features like `setAttachScreenshot` and
`setEnableAutoSessionTracking`. If metrics are enabled by default in the Java SDK, this
omission could lead to unintended data collection, increased network traffic, and
potential performance impact for Unity applications on Android.

Did we get this right? 👍 / 👎 to inform future reviews.

@bitsandfoxes bitsandfoxes enabled auto-merge (squash) January 16, 2026 10:09
@bitsandfoxes bitsandfoxes merged commit 45d5236 into main Jan 16, 2026
57 checks passed
@bitsandfoxes bitsandfoxes deleted the deps/modules/sentry-java/8.30.0 branch January 16, 2026 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants