Fix tests for Spring 7 and Spring Boot 4#4614
Merged
adinauer merged 15 commits into08-04-attempt_to_fix_kotlin_2.2_issuefrom Aug 11, 2025
Merged
Fix tests for Spring 7 and Spring Boot 4#4614adinauer merged 15 commits into08-04-attempt_to_fix_kotlin_2.2_issuefrom
adinauer merged 15 commits into08-04-attempt_to_fix_kotlin_2.2_issuefrom
Conversation
This was referenced Aug 7, 2025
Member
Author
7 tasks
Contributor
Instructions and example for changelogPlease add an entry to Example: ## Unreleased
- Fix tests for Spring 7 and Spring Boot 4 ([#4614](https://github.com/getsentry/sentry-java/pull/4614))If none of the above apply, you can opt out of this check by adding |
7 tasks
Base automatically changed from
08-07-third_attempt_at_fixing_kotlin_2.2_compat
to
08-06-second_attempt_to_fix_kotlin_2.2
August 7, 2025 14:34
Base automatically changed from
08-06-second_attempt_to_fix_kotlin_2.2
to
08-04-attempt_to_fix_kotlin_2.2_issue
August 7, 2025 14:35
lcian
approved these changes
Aug 8, 2025
Member
lcian
left a comment
There was a problem hiding this comment.
The test changes look good to me.
It seems that this unfortunately got intertwined with the Kotlin fixes. I've pointed out the places where the build files look odd, so let's please remember to address those before merging.
build.gradle.kts
Outdated
Comment on lines
21
to
25
| alias(libs.plugins.kotlin.multiplatform) apply false | ||
| alias(libs.plugins.kotlin.jvm) apply false | ||
| // alias(libs.plugins.kotlin.jvm.spring7) apply false | ||
| alias(libs.plugins.kotlin.spring) apply false | ||
| // alias(libs.plugins.kotlin.spring7) apply false |
| `java-library` | ||
| id("io.sentry.javadoc") | ||
| kotlin("jvm") | ||
| // alias(libs.plugins.kotlin.jvm) |
Member
There was a problem hiding this comment.
Suggested change
| // alias(libs.plugins.kotlin.jvm) |
| id("com.android.application") | ||
| kotlin("android") | ||
| alias(libs.plugins.kotlin.android) | ||
| // alias(libs.plugins.kotlin.compose) |
Member
There was a problem hiding this comment.
Suggested change
| // alias(libs.plugins.kotlin.compose) |
| id("com.android.library") | ||
| kotlin("android") | ||
| alias(libs.plugins.kotlin.android) | ||
| // alias(libs.plugins.kotlin.compose) |
Member
There was a problem hiding this comment.
Suggested change
| // alias(libs.plugins.kotlin.compose) |
| id("com.android.application") | ||
| kotlin("android") | ||
| alias(libs.plugins.kotlin.android) | ||
| // alias(libs.plugins.kotlin.compose) |
Member
There was a problem hiding this comment.
Suggested change
| // alias(libs.plugins.kotlin.compose) |
| id("com.android.application") | ||
| kotlin("android") | ||
| alias(libs.plugins.kotlin.android) | ||
| // alias(libs.plugins.kotlin.compose) |
Member
There was a problem hiding this comment.
Suggested change
| // alias(libs.plugins.kotlin.compose) |
* Move Spring 7 and Spring Boot 4 packages * Fix class not found due to OTel not supporting spring boot 4 yet (#4616)
…ests_for_spring_7_and_spring_boot_4
Contributor
Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 1e0ee95 | 509.08 ms | 530.81 ms | 21.73 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 1e0ee95 | 1.58 MiB | 2.09 MiB | 524.25 KiB |
Previous results on branch: 08-07-fix_tests_for_spring_7_and_spring_boot_4
Startup times
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 9b0eec4 | 405.47 ms | 429.46 ms | 23.99 ms |
| 18325a0 | 362.44 ms | 425.54 ms | 63.10 ms |
| 4eba82f | 385.85 ms | 419.45 ms | 33.60 ms |
| 623480f | 420.67 ms | 453.50 ms | 32.83 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 9b0eec4 | 1.58 MiB | 2.09 MiB | 524.25 KiB |
| 18325a0 | 1.58 MiB | 2.09 MiB | 524.25 KiB |
| 4eba82f | 1.58 MiB | 2.09 MiB | 524.25 KiB |
| 623480f | 1.58 MiB | 2.09 MiB | 524.26 KiB |
1ae8108
into
08-04-attempt_to_fix_kotlin_2.2_issue
37 of 39 checks passed
adinauer
added a commit
that referenced
this pull request
Aug 11, 2025
* Fix Spring 7 and Spring Boot 4 modules * Attempt to fix kotlin 2.2 issue * Second attempt to fix Kotlin 2.2 (#4610) * Second attempt to fix Kotlin 2.2 * Format code * Third attempt at fixing Kotlin 2.2 compat (#4613) --------- Co-authored-by: Sentry Github Bot <bot+github-bot@sentry.io> * Address compose-related issues * Fix tests for Spring 7 and Spring Boot 4 (#4614) * Second attempt to fix Kotlin 2.2 * Format code * Third attempt at fixing Kotlin 2.2 compat * Fix tests for Spring 7 and Spring Boot 4 * Move Spring 7 and Spring Boot 4 packages (#4615) * Move Spring 7 and Spring Boot 4 packages * Fix class not found due to OTel not supporting spring boot 4 yet (#4616) * Format code * some fixes * change kotlin 1.8 to 1.9 and some cleanup * ignore warnings about api level that is not relevant * fix optional dependencies in SentryAutoConfiguration * Update trace origin * Remove duplicate e2e test config * Update Strings for Spring 7 and Spring Boot 4 * Disable Spring Boot 4 agentless e2e tests for now --------- Co-authored-by: Sentry Github Bot <bot+github-bot@sentry.io> --------- Co-authored-by: Sentry Github Bot <bot+github-bot@sentry.io> Co-authored-by: markushi <markus.hintersteiner@sentry.io>
adinauer
added a commit
that referenced
this pull request
Aug 26, 2025
* Add new modules for Spring 7 and Spring Boot 4 * Fix Spring 7 and Spring Boot 4 modules (#4602) * Attempt to fix kotlin 2.2 issue (#4603) * Fix Spring 7 and Spring Boot 4 modules * Attempt to fix kotlin 2.2 issue * Second attempt to fix Kotlin 2.2 (#4610) * Second attempt to fix Kotlin 2.2 * Format code * Third attempt at fixing Kotlin 2.2 compat (#4613) --------- Co-authored-by: Sentry Github Bot <bot+github-bot@sentry.io> * Address compose-related issues * Fix tests for Spring 7 and Spring Boot 4 (#4614) * Second attempt to fix Kotlin 2.2 * Format code * Third attempt at fixing Kotlin 2.2 compat * Fix tests for Spring 7 and Spring Boot 4 * Move Spring 7 and Spring Boot 4 packages (#4615) * Move Spring 7 and Spring Boot 4 packages * Fix class not found due to OTel not supporting spring boot 4 yet (#4616) * Format code * some fixes * change kotlin 1.8 to 1.9 and some cleanup * ignore warnings about api level that is not relevant * fix optional dependencies in SentryAutoConfiguration * Update trace origin * Remove duplicate e2e test config * Update Strings for Spring 7 and Spring Boot 4 * Disable Spring Boot 4 agentless e2e tests for now --------- Co-authored-by: Sentry Github Bot <bot+github-bot@sentry.io> --------- Co-authored-by: Sentry Github Bot <bot+github-bot@sentry.io> Co-authored-by: markushi <markus.hintersteiner@sentry.io> * changelog * fix ci * add ignored span origins for Spring 7 and Spring Boot 4 * move changelog * Example how to fix version mismatch (#4642) * Fix ignored span origin * move changelog --------- Co-authored-by: Sentry Github Bot <bot+github-bot@sentry.io> Co-authored-by: markushi <markus.hintersteiner@sentry.io> Co-authored-by: Alex Alderman Webb <alexander.webb@sentry.io>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

📜 Description
💡 Motivation and Context
💚 How did you test it?
📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps