Sentry v8.42.0 Release Notes
Release Date: 2026-05-20 // 1 day ago-
🔋 Features
➕ Add option to attach raw tombstone protobuf on native crash events (#5446)
- Enable via
options.isAttachRawTombstone = trueor manifest:<meta-data android:name="io.sentry.tombstone.attach-raw" android:value="true" />
- Enable via
➕ Add API to clear feature flags from scopes (#5426)
➕ Add support to configure reporting historical ANRs via
AndroidManifest.xmlusing theio.sentry.anr.report-historicalattribute (#5387)
Dependencies
Previous changes from v8.41.0
-
🔋 Features
👍 Session Replay: experimental support for capturing
SurfaceViewcontent (e.g. Unity, video players, maps) (#5333)- To enable, set
options.sessionReplay.isCaptureSurfaceViews = true - Or via manifest:
<meta-data android:name="io.sentry.session-replay.capture-surface-views" android:value="true" /> - Warning: masking granularity is at the SurfaceView level only — the SDK cannot mask individual elements rendered inside the SurfaceView (e.g. native Unity UI, map labels, video frames). Only enable for SurfaceViews whose content is safe to record.
- To enable, set
➕ Add
Sentry.feedback()API forshow()andcapture()(#5349)Sentry.showUserFeedbackDialog()is deprecated in favor ofSentry.feedback().show()Sentry.captureFeedback()is deprecated in favor ofSentry.feedback().capture()Sentry.captureUserFeedback()andUserFeedbackare deprecated in favor ofSentry.feedback().capture()with the newFeedbacktypeSentryUserFeedbackDialogis deprecated in favor ofSentryUserFeedbackForm- All deprecated APIs will be removed in the next major version
🗄 Deprecate
SentryUserFeedbackButton(View-based and Compose-based) (#5350)- It will be removed in the next major version
➕ Add per-form shake-to-show support for
SentryUserFeedbackForm(#5353)- Useful for enabling shake-to-report on specific screens instead of globally
SentryUserFeedbackForm.Builder(activity) .configurator { it.isUseShakeGesture=true} .create()
➕ Add support for Kafka (#5249)
- You will need to add the
sentry-kafkadependency and opt-in via the new option. - Set
options.setEnableQueueTracing(true)onSentry.init - Or set
sentry.enable-queue-tracing=trueinapplication.properties - For Spring Boot Kafka is auto instrumented and no further configuration is needed.
- also see https://docs.sentry.io/platforms/java/guides/spring-boot/integrations/kafka/
- When using
kafka-clientsdirectly - you need to wrap your
KafkaProducerviaSentryKafkaProducer.wrap(kafkaProducer)to getqueue.publishspans - and you may use our
SentryKafkaConsumerTracing.withTracinghelper to instrument the consumer side manually. - also see https://docs.sentry.io/platforms/java/integrations/kafka/
- You will need to add the
🛠 Fixes
- 🛠 Fix soft input keyboard not being shown on the Feedback form (#5359)
- 🛠 Fix shake-to-report not triggering on some devices due to high acceleration threshold (#5366)
- 🛠 Fix feedback form retaining previous message when shown again via shake (#5366)
- Avoid stack overflow when deserializing large flat JSON objects (#5361)
Dependencies