Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Jan 16, 2026

Bumps scripts/update-java.ps1 from 8.29.0 to 8.32.0.

Auto-generated by a dependency updater.

Changelog

8.32.0

Features

  • Add installGroupsOverride parameter and installGroups property to Build Distribution SDK (#5062)
  • Update Android targetSdk to API 36 (Android 16) (#5016)
  • Add AndroidManifest support for Spotlight configuration via io.sentry.spotlight.enable and io.sentry.spotlight.url (#5064)
  • Collect database transaction spans (BEGIN, COMMIT, ROLLBACK) (#5072)
    • To enable creation of these spans, set options.enableDatabaseTransactionTracing to true
    • enable-database-transaction-tracing=true when using sentry.properties
    • For Spring Boot, use sentry.enable-database-transaction-tracing=true in application.properties or in application.yml:
      sentry:
        enable-database-transaction-tracing: true
  • Add support for collecting native crashes using Tombstones (#4933, #5037)
    • Added Tombstone integration that detects native crashes using ApplicationExitInfo.REASON_CRASH_NATIVE on Android 12+
    • Crashes enriched with Tombstones contain more crash details and detailed thread info
    • Tombstone and NDK integrations are now automatically merged into a single crash event, eliminating duplicate reports
    • To enable it, add the integration in your Sentry initialization:
      SentryAndroid.init(context, options -> {
          options.isTombstoneEnabled = true
      })
      or in the AndroidManifest.xml using:
      <meta-data android:name="io.sentry.tombstone.enable" android:value="true" />

Fixes

  • Extract SpotlightIntegration to separate sentry-spotlight module to prevent insecure HTTP URLs from appearing in release APKs (#5064)
    • Breaking: Users who enable Spotlight must now add the io.sentry:sentry-spotlight dependency:
      dependencies {
          debugImplementation("io.sentry:sentry-spotlight:<version>")
      }
  • Fix scroll target detection for Jetpack Compose (#5017)
  • No longer fork Sentry Scopes for reactor-kafka consumer poll Runnable (#5080)
    • This was causing a memory leak because reactor-kafka's poll event reschedules itself infinitely, and each invocation of SentryScheduleHook created forked scopes with a parent reference, building an unbounded chain that couldn't be garbage collected.
  • Fix cold/warm app start type detection for Android devices running API level 34+ (#4999)

Internal

  • Establish new native exception mechanisms to differentiate events generated by sentry-native from ApplicationExitInfo. (#5052)
  • Set write permission for statuses in the changelog preview GHA workflow. (#5053)

Dependencies

8.31.0

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

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/

Changelog Entry

  • chore(deps): update Java SDK to v8.32.0
  • chore(deps): add protobuf-javalite 3.25.8 dependency on Android

@github-actions github-actions bot added the Dependencies Pull requests that update a dependency file label Jan 16, 2026
@bruno-garcia bruno-garcia force-pushed the deps/scripts/update-java.ps1 branch from d598fdc to 3b98c9e Compare January 16, 2026 03:28
@codecov
Copy link

codecov bot commented Jan 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.88%. Comparing base (3a4a7f9) to head (186b90b).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4843      +/-   ##
==========================================
+ Coverage   73.86%   73.88%   +0.01%     
==========================================
  Files         494      494              
  Lines       17868    17868              
  Branches     3509     3509              
==========================================
+ Hits        13199    13202       +3     
+ Misses       3809     3807       -2     
+ Partials      860      859       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bruno-garcia bruno-garcia force-pushed the deps/scripts/update-java.ps1 branch 2 times, most recently from b39ecba to 4160a34 Compare January 21, 2026 03:29
@github-actions github-actions bot changed the title chore(deps): update Java SDK to v8.30.0 chore(deps): update Java SDK to v8.31.0 Jan 22, 2026
@bruno-garcia bruno-garcia force-pushed the deps/scripts/update-java.ps1 branch 4 times, most recently from 948758b to 0bac229 Compare January 27, 2026 03:30
@bruno-garcia bruno-garcia force-pushed the deps/scripts/update-java.ps1 branch 4 times, most recently from 7d7b339 to 4e5880c Compare February 3, 2026 03:45
@github-actions
Copy link
Contributor Author

github-actions bot commented Feb 3, 2026

Semver Impact of This PR

None (no version bump detected)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


Dependencies ⬆️

Deps

  • chore(deps): update Java SDK to v8.32.0 by github-actions[bot] in #4843
  • chore(deps): add protobuf-javalite 3.25.8 dependency on Android by github-actions[bot] in #4843
  • chore(deps): Bumped Xamarin.AndroidX.Lifecycle.Common.Java8 and CommunityToolkit.Mvvm to 2.2.20 and 8.4.0 by jamescrosswell in #4876

🤖 This preview updates automatically when you update the PR.

@bruno-garcia bruno-garcia force-pushed the deps/scripts/update-java.ps1 branch 2 times, most recently from dba5b42 to 0f9d2d7 Compare February 5, 2026 03:44
@jpnurmi
Copy link
Collaborator

jpnurmi commented Feb 5, 2026

Problem

error XA4242: Java dependency 'com.google.protobuf:protobuf-javalite:3.25.8' is not satisfied. Microsoft maintains the NuGet package 'Xamarin.Protobuf.JavaLite' that could fulfill this dependency.

The nearest available Xamarin.Protobuf.JavaLite versions are 3.25.3.2 and 4.26.1 - neither satisfies the dependency.

Proposal

Claude proposes the following:

<ItemGroup>
  <AndroidMavenLibrary Include="com.google.protobuf:protobuf-javalite" Version="3.25.8" Bind="false" />
</ItemGroup>

Does it sound like the correct thing to do?

Related Java SDK changes:

@bruno-garcia bruno-garcia force-pushed the deps/scripts/update-java.ps1 branch from 0f9d2d7 to d4e6b67 Compare February 7, 2026 03:43
@jamescrosswell
Copy link
Collaborator

Proposal

Claude proposes the following:

<ItemGroup>
  <AndroidMavenLibrary Include="com.google.protobuf:protobuf-javalite" Version="3.25.8" Bind="false" />
</ItemGroup>

Does it sound like the correct thing to do?

Possibly... as long as we don't have another (conflicting) version as a transient dependency via one of our NuGets. That would typically occur as an indirect result of having <UseMaui>true</UseMaui> in a project file... worth trying though.

@bruno-garcia bruno-garcia force-pushed the deps/scripts/update-java.ps1 branch from d4e6b67 to 976c91e Compare February 9, 2026 03:51
@github-actions github-actions bot changed the title chore(deps): update Java SDK to v8.31.0 chore(deps): update Java SDK to v8.32.0 Feb 10, 2026
@bruno-garcia bruno-garcia force-pushed the deps/scripts/update-java.ps1 branch from 976c91e to 881ae9e Compare February 10, 2026 03:55
jpnurmi and others added 2 commits February 10, 2026 14:44
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The class was removed from the Java SDK, causing:
  warning BG8A00: Metadata.xml element '<remove-node
  path="/api/package[@name='io.sentry.android.core']/class[@name='AnrV2EventProcessor']"
  />' matched no nodes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
<!-- protobuf-javalite 3.25.8 has no matching/compatible Xamarin.Protobuf.JavaLite NuGet package
(see https://github.com/getsentry/sentry-java/pull/5044) -->
<ItemGroup>
<AndroidMavenLibrary Include="com.google.protobuf:protobuf-javalite" Version="3.25.8" Bind="false" />
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should probably add mention of this in the changelog (the fact that we're adding a new dependency when targeting net10.0-android).

I think a changelog would get generated automatically for this PR now that we've moved to automated changelogs. However, OOTB it would use the title of the PR, which doesn't make any mention of this new dependency.

Apparently it's possible to customise the changelog for a PR though:

Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice :) I've added changelog entries to the PR description

Copy link
Collaborator

@jamescrosswell jamescrosswell left a comment

Choose a reason for hiding this comment

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

Just one comment re documenting the new dependency in the changelog. Otherwise looks awesome - thanks @jpnurmi !

@jpnurmi jpnurmi merged commit 04d13e3 into main Feb 11, 2026
44 checks passed
@jpnurmi jpnurmi deleted the deps/scripts/update-java.ps1 branch February 11, 2026 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants