Skip to content

chore(deps): update Java SDK to v8.34.0#2574

Merged
bitsandfoxes merged 3 commits intomainfrom
deps/modules/sentry-java/8.34.0
Mar 5, 2026
Merged

chore(deps): update Java SDK to v8.34.0#2574
bitsandfoxes merged 3 commits intomainfrom
deps/modules/sentry-java/8.34.0

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Mar 5, 2026

Bumps modules/sentry-java from 8.33.0 to 8.34.0.

Auto-generated by a dependency updater.

Changelog

8.34.0

Features

  • Allow configuring shutdown and session flush timeouts externally (#4641)
    • sentry.properties: shutdown-timeout-millis, session-flush-timeout-millis
    • Environment variables: SENTRY_SHUTDOWN_TIMEOUT_MILLIS, SENTRY_SESSION_FLUSH_TIMEOUT_MILLIS
    • Spring Boot application.properties: sentry.shutdownTimeoutMillis, sentry.sessionFlushTimeoutMillis
  • Add scope-level attributes API (#5118) via (#5148)
    • Automatically include scope attributes in logs and metrics (#5120)
    • New APIs are Sentry.setAttribute, Sentry.setAttributes, Sentry.removeAttribute
  • Support collections and arrays in attribute type inference (#5124)
  • Add support for SENTRY_SAMPLE_RATE environment variable / sample-rate property (#5112)
  • Create sentry-opentelemetry-otlp and sentry-opentelemetry-otlp-spring modules for combining OpenTelemetry SDK OTLP export with Sentry SDK (#5100)
    • OpenTelemetry is configured to send spans to Sentry directly using an OTLP endpoint.
    • Sentry only uses trace and span ID from OpenTelemetry (via OpenTelemetryOtlpEventProcessor) but will not send spans through OpenTelemetry nor use OpenTelemetry Context for Scopes propagation.
    • See the OTLP setup docs for Java and Spring Boot for installation and configuration instructions.
  • Add screenshot masking support using view hierarchy (#5077)
    • Masks sensitive content (text, images) in error screenshots using the same view hierarchy approach as Session Replay
    • Requires the sentry-android-replay module to be present at runtime for masking to work
    • Enable via code:
      SentryAndroid.init(context) { options ->
          options.isAttachScreenshot = true
          options.screenshot.setMaskAllText(true)
          options.screenshot.setMaskAllImages(true)
          // Or mask specific view classes
          options.screenshot.addMaskViewClass("com.example.MyCustomView")
      }
    • Or via AndroidManifest.xml:
      <meta-data android:name="io.sentry.attach-screenshot" android:value="true" />
      <meta-data android:name="io.sentry.screenshot.mask-all-text" android:value="true" />
      <meta-data android:name="io.sentry.screenshot.mask-all-images" android:value="true" />
  • The ManifestMetaDataReader now read the DIST (#5107)

Fixes

  • Fix attribute type detection for Long, Short, Byte, BigInteger, AtomicInteger, and AtomicLong being incorrectly inferred as double instead of integer (#5122)
  • Remove AndroidRuntimeManager StrictMode relaxation to prevent ANRs during SDK init (#5127)
    • IMPORTANT: StrictMode violations may appear again in debug builds. This is intentional to prevent ANRs in production releases.
  • Fix crash when unregistering SystemEventsBroadcastReceiver with try-catch block. (#5106)
  • Use peekDecorView instead of getDecorView in SentryGestureListener to avoid forcing view hierarchy construction (#5134)
  • Log an actionable error message when Relay returns HTTP 413 (Content Too Large) (#5115)
    • Also switch the client report discard reason for all HTTP 4xx/5xx errors (except 429) from network_error to send_error
  • Trim DSN string before parsing to avoid URISyntaxException caused by trailing whitespace (#5113)
  • Reduce allocations and bytecode instructions during Sentry.init (#5135)

Dependencies

@bruno-garcia bruno-garcia force-pushed the deps/modules/sentry-java/8.34.0 branch from 9d410ed to 9628220 Compare March 5, 2026 03:43
@github-actions
Copy link
Contributor Author

github-actions bot commented Mar 5, 2026

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 Changelog Preview

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


Bug Fixes 🐛

  • Propagate app context on Android by bitsandfoxes in #2557
  • Prevent command injection in create-unity-matrix workflow (GDX-417) by fix-it-felix-sentry in #2552

Internal Changes 🔧

Deps

  • Update Java SDK to v8.34.0 by github-actions[bot] in #2574
  • Update CLI to v3.3.0 by github-actions in #2576
  • Update Cocoa SDK to v9.6.0 by github-actions in #2575
  • Update Native SDK to v0.13.1 by github-actions in #2567
  • Update CLI to v3.2.3 by github-actions in #2568
  • Update Cocoa SDK to v9.5.1 by github-actions in #2565
  • Update CLI to v3.2.2 by github-actions in #2563
  • Update CLI to v3.2.1 by github-actions in #2561
  • Update Native SDK to v0.13.0 by github-actions in #2560
  • Update Cocoa SDK to v9.5.0 by github-actions in #2558
  • Update Java SDK to v8.33.0 by github-actions in #2555
  • Update Native SDK to v0.12.8 by github-actions in #2550

🤖 This preview updates automatically when you update the PR.

@bitsandfoxes bitsandfoxes enabled auto-merge (squash) March 5, 2026 12:32
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

@bitsandfoxes bitsandfoxes merged commit 670a018 into main Mar 5, 2026
32 checks passed
@bitsandfoxes bitsandfoxes deleted the deps/modules/sentry-java/8.34.0 branch March 5, 2026 12:37
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.

2 participants