Skip to content

Conversation

@adinauer
Copy link
Member

📜 Description

Only set DefaultReplayBreadcrumbConverter if replay is available

💡 Motivation and Context

Fixes java.lang.ClassNotFoundException if replay is unavailable.

💚 How did you test it?

📝 Checklist

  • I added GH Issue ID & Linear ID
  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.

🔮 Next steps

@github-actions
Copy link
Contributor

github-actions bot commented Nov 10, 2025

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 366.30 ms 427.70 ms 61.40 ms
Size 1.58 MiB 2.12 MiB 553.04 KiB

Previous results on branch: fix/is-replay-available-for-breadcrumbs-converter

Startup times

Revision Plain With Sentry Diff
193e4d1 374.24 ms 445.06 ms 70.82 ms

App size

Revision Plain With Sentry Diff
193e4d1 1.58 MiB 2.12 MiB 553.04 KiB

Copy link
Member

@romtsn romtsn left a comment

Choose a reason for hiding this comment

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

thanks!

Base automatically changed from feat/bump-spring-boot-4-rc-2 to main November 10, 2025 13:30
@adinauer adinauer enabled auto-merge (squash) November 10, 2025 13:39
@adinauer adinauer merged commit 9e3b01d into main Nov 10, 2025
59 of 62 checks passed
@adinauer adinauer deleted the fix/is-replay-available-for-breadcrumbs-converter branch November 10, 2025 13:46
@43jay
Copy link
Collaborator

43jay commented Nov 11, 2025

thanks for the fix! I'm curious what build / configuration this occurs in - where the class file is missing from the sdk?

@romtsn
Copy link
Member

romtsn commented Nov 11, 2025

@43jay it's here:

if (applySentryIntegrations) {
implementation(projects.sentryAndroid)
implementation(projects.sentryCompose)
} else {
implementation(projects.sentryAndroidCore)
}

if integrations are disabled we don't apply sentry-android (which includes sentry-android-replay) to the test app, only sentry-android-core

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants