Skip to content

chore(deps): update Java SDK to v8.46.0#5321

Merged
jamescrosswell merged 1 commit into
mainfrom
deps/scripts/update-java.ps1
Jun 26, 2026
Merged

chore(deps): update Java SDK to v8.46.0#5321
jamescrosswell merged 1 commit into
mainfrom
deps/scripts/update-java.ps1

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Bumps scripts/update-java.ps1 from 8.45.0 to 8.46.0.

Auto-generated by a dependency updater.

Changelog

8.46.0

Behavioral Changes

  • Collections returned by scope (e.g. getBreadcrumbs, getTags, getAttachments) are shared state and should not be mutated. (#5541)
    • Previously, when going through CombinedScopeView, we were returning a copy where mutations didn't show up in the underlying scopes.
    • This has now changed in order to reduce SDK overhead.
  • Date objects returned by SDK data model getters are shared state and should not be mutated. (#5603)
    • Previously, these getters returned defensive copies for some date fields.
    • This has now changed in order to reduce SDK overhead.

Performance

  • Reduce writer buffer size from 8192 to 512 (#5544)
  • Remove redundant event map copies (#5536)
  • Optimize combined scope by adding an early return if only one scope has data (#5541)
  • Reduce model access overhead by avoiding defensive Date copies in SDK data model getters. (#5603)
  • Reduce timestamp parsing and formatting overhead with Sentry-specific ISO-8601 handling. (#5602)
  • Reduce JSON serialization overhead by creating the reflection serializer only when unknown-object fallback serialization is needed. (#5601)
  • Reduce JSON serialization overhead by allocating reflection cycle-tracking state only when reflection serialization is used. (#5600)
  • Reduce context serialization overhead by sorting key snapshots with arrays instead of temporary lists. (#5599)
  • Reduce breadcrumb allocation overhead by creating the Breadcrumb data map only when data is added. (#5598)
  • Reduce JSON serialization overhead by lowering the initial JsonWriter nesting stack size while preserving on-demand growth. (#5591)
  • Reduce timestamp helper overhead by replacing unnecessary Calendar usage in DateUtils with direct Date creation. (#5589)
  • Reduce Android startup overhead by using the default timezone directly on older devices or when no timezone info is available in the locale. (#5587)

Features

  • On Android 15+ (API 35), the standalone app.start transaction now reports why the OS started the process via app.vitals.start.reason trace data (e.g. launcher, broadcast, service, content_provider), derived from ApplicationStartInfo.getReason(). You can search and group by this attribute in the Trace Explorer. (#5552)

8.43.3

Fixes

  • Fix crash when getHistoricalProcessStartReasons is called from an isolated or wrong-userId process (#5597)
Full CHANGELOG.md diff
 -1,7 +1,37 
 # Changelog
 
+## 8.46.0
+
+### Behavioral Changes
+
+- Collections returned by scope (e.g. `getBreadcrumbs`, `getTags`, `getAttachments`) are shared state and should not be mutated. ([#5541](https://github-redirect.dependabot.com/getsentry/sentry-java/pull/5541))
+  - Previously, when going through `CombinedScopeView`, we were returning a copy where mutations didn't show up in the underlying scopes.
+  - This has now changed in order to reduce SDK overhead.
+- `Date` objects returned by SDK data model getters are shared state and should not be mutated. ([#5603](https://github-redirect.dependabot.com/getsentry/sentry-java/pull/5603))
+  - Previously, these getters returned defensive copies for some date fields.
+  - This has now changed in order to reduce SDK overhead.
+
+### Performance
+
+- Reduce writer buffer size from 8192 to 512 ([#5544](https://github-redirect.dependabot.com/getsentry/sentry-java/pull/5544))
+- Remove redundant event map copies ([#5536](https://github-redirect.dependabot.com/getsentry/sentry-java/pull/5536))
+- Optimize combined scope by adding an early return if only one scope has data ([#5541](https://github-redirect.dependabot.com/getsentry/sentry-java/pull/5541))
+- Reduce model access overhead by avoiding defensive `Date` copies in SDK data model getters. ([#5603](https://github-redirect.dependabot.com/getsentry/sentry-java/pull/5603))
+- Reduce timestamp parsing and formatting overhead with Sentry-specific ISO-8601 handling. ([#5602](https://github-redirect.dependabot.com/getsentry/sentry-java/pull/5602))
+- Reduce JSON serialization overhead by creating the reflection serializer only when unknown-object fallback serialization is needed. ([#5601](https://github-redirect.dependabot.com/getsentry/sentry-java/pull/5601))
+- Reduce JSON serialization overhead by allocating reflection cycle-tracking state only when reflection serialization is used. ([#5600](https://github-redirect.dependabot.com/getsentry/sentry-java/pull/5600))
+- Reduce context serialization overhead by sorting key snapshots with arrays instead of temporary lists. ([#5599](https://github-redirect.dependabot.com/getsentry/sentry-java/pull/5599))
+- Reduce breadcrumb allocation overhead by creating the `Breadcrumb` data map only when data is added. ([#5598](https://github-redirect.dependabot.com/getsentry/sentry-java/pull/5598))
+- Reduce JSON serialization overhead by lowering the initial `JsonWriter` nesting stack size while preserving on-demand growth. ([#5591](https://github-redirect.dependabot.com/getsentry/sentry-java/pull/5591))
+- Reduce timestamp helper overhead by replacing unnecessary `Calendar` usage in `DateUtils` with direct `Date` creation. ([#5589](https://github-redirect.dependabot.com/getsentry/sentry-java/pull/5589))
+- Reduce Android startup overhead by using the default timezone directly on older devices or when no timezone info is available in the locale. ([#5587](https://github-redirect.dependabot.com/getsentry/sentry-java/pull/5587))
+
 ## 8.45.0
 
+### Features
+
+- On Android 15+ (API 35), the standalone `app.start` transaction now reports why the OS started the process via `app.vitals.start.reason` trace data (e.g. `launcher`, `broadcast`, `service`, `content_provider`), derived from `ApplicationStartInfo.getReason()`. You can search and group by this attribute in the Trace Explorer. ([#5552](https://github-redirect.dependabot.com/getsentry/sentry-java/pull/5552))
+
 ### Fixes
 
 - Use `System.nanoTime()` for cron check-in duration measurement to avoid incorrect durations from wall-clock adjustments ([#5611](https://github-redirect.dependabot.com/getsentry/sentry-java/pull/5611))
 -41,7 +71,6 
   - Emits a transaction named `App Start` with op `app.start`, carrying the existing app start measurements and phase spans (`process.load`, `contentprovider.load`, `application.load`, activity lifecycle spans) as direct children of the root
   - The standalone transaction shares the same `traceId` as the first `ui.load` activity transaction so they remain linked in the trace view
   - Also covers non-activity starts (broadcast receivers, services, content providers)
-  - On Android 15+ (API 35), the standalone `app.start` transaction reports why the OS started the process via `app.vitals.start.reason` trace data (e.g. `launcher`, `broadcast`, `service`, `content_provider`), derived from `ApplicationStartInfo.getReason()`. You can search and group by this attribute in the Trace Explorer. ([#5552](https://github-redirect.dependabot.com/getsentry/sentry-java/pull/5552))
 
 ### Improvements
 
 -61,6 +90,12 
 - Fix attachments being duplicated on native events that carry scope attachments ([#5548](https://github-redirect.dependabot.com/getsentry/sentry-java/pull/5548))
 - Fix performance collector scheduling many tasks in a row ([#5524](https://github-redirect.dependabot.com/getsentry/sentry-java/pull/5524))
 
+## 8.43.3
+
+### Fixes
+
+- Fix crash when `getHistoricalProcessStartReasons` is called from an isolated or wrong-userId process ([#5597](https://github-redirect.dependabot.com/getsentry/sentry-java/pull/5597))
+
 ## 8.43.2
 
 ### Improvements

@github-actions github-actions Bot added the Dependencies Pull requests that update a dependency file label Jun 26, 2026
@bruno-garcia
bruno-garcia force-pushed the deps/scripts/update-java.ps1 branch from cd8dc18 to 0070877 Compare June 26, 2026 04:25
@codecov

codecov Bot commented Jun 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.16%. Comparing base (11068e0) to head (0070877).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5321      +/-   ##
==========================================
+ Coverage   74.15%   74.16%   +0.01%     
==========================================
  Files         508      508              
  Lines       18353    18353              
  Branches     3586     3586              
==========================================
+ Hits        13610    13612       +2     
+ Misses       3870     3869       -1     
+ Partials      873      872       -1     

☔ View full report in Codecov by Harness.
📢 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.

@jamescrosswell jamescrosswell left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Automated approval: dependency update, CI green, no breaking changes in description.

@jamescrosswell
jamescrosswell merged commit 5da48e1 into main Jun 26, 2026
47 checks passed
@jamescrosswell
jamescrosswell deleted the deps/scripts/update-java.ps1 branch June 26, 2026 20:09
This was referenced Jul 16, 2026
This was referenced Jul 19, 2026
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.

2 participants