build(opentelemetry): Bump OpenTelemetry dependencies#5225
Open
build(opentelemetry): Bump OpenTelemetry dependencies#5225
Conversation
Update OpenTelemetry core, instrumentation, and semantic conventions\nversions in the shared version catalog.\n\nThis keeps sentry-java aligned with newer OTel releases used by the\nopentelemetry modules and samples.\n\nCo-Authored-By: Claude <noreply@anthropic.com>
Contributor
Semver Impact of This PR🟢 Patch (bug fixes) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨
Internal Changes 🔧
🤖 This preview updates automatically when you update the PR. |
Sentry Build Distribution
|
Align the OpenTelemetry changelog entry with prior dependency bump style\nby listing each artifact and including previous versions for context.\n\nThis makes the upgrade scope easier to review and mirrors the detail\nlevel used in earlier OpenTelemetry changelog entries.\n\nCo-Authored-By: Claude <noreply@anthropic.com>
Enable the spring-boot-4 opentelemetry-noagent sample in backend system-test matrix and spring-boot-4 workflow. This turns the previously commented-out no-agent scenario into an active CI check so regressions are caught automatically. Co-Authored-By: Claude <noreply@anthropic.com>
Replace test usage of sdk.internal.AttributesMap with public Attributes builders.\n\nThe OTel dependency bump removed the internal class, which broke\n:sentry-opentelemetry:sentry-opentelemetry-core:compileTestKotlin and\ntherefore the full build. Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 27d7cf8 | 314.17 ms | 347.00 ms | 32.83 ms |
| ff8eea4 | 313.42 ms | 337.08 ms | 23.66 ms |
| b750b96 | 408.98 ms | 480.32 ms | 71.34 ms |
| 0eaac1e | 322.53 ms | 389.31 ms | 66.78 ms |
| 18c0bc2 | 306.73 ms | 349.77 ms | 43.03 ms |
| abf451a | 332.82 ms | 403.67 ms | 70.85 ms |
| 62b579c | 349.26 ms | 426.26 ms | 77.00 ms |
| f064536 | 335.52 ms | 408.79 ms | 73.27 ms |
| 70118e9 | 380.00 ms | 475.72 ms | 95.72 ms |
| 85d7417 | 347.21 ms | 394.35 ms | 47.15 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 27d7cf8 | 1.58 MiB | 2.12 MiB | 549.42 KiB |
| ff8eea4 | 1.58 MiB | 2.28 MiB | 718.64 KiB |
| b750b96 | 1.58 MiB | 2.10 MiB | 533.19 KiB |
| 0eaac1e | 1.58 MiB | 2.19 MiB | 619.17 KiB |
| 18c0bc2 | 1.58 MiB | 2.13 MiB | 557.33 KiB |
| abf451a | 1.58 MiB | 2.20 MiB | 635.29 KiB |
| 62b579c | 0 B | 0 B | 0 B |
| f064536 | 1.58 MiB | 2.20 MiB | 633.90 KiB |
| 70118e9 | 1.58 MiB | 2.29 MiB | 719.84 KiB |
| 85d7417 | 1.58 MiB | 2.10 MiB | 533.44 KiB |
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
gradle/libs.versions.tomlotel:1.57.0→1.60.1otelInstrumentation:2.23.0→2.26.0otelInstrumentationAlpha:2.23.0-alpha→2.26.0-alphaotelSemanticConventions:1.37.0→1.40.0otelSemanticConventionsAlpha:1.37.0-alpha→1.40.0-alpha.github/workflows/system-tests-backend.ymlmatrix entry.github/workflows/spring-boot-4-matrix.ymljob stepCHANGELOG.md(Unreleased → Dependencies) with detailed OpenTelemetry bump notes including previous versions💡 Motivation and Context
Keep Sentry Java aligned with newer OpenTelemetry releases while ensuring the Spring Boot 4 no-agent scenario is continuously validated in CI.
💚 How did you test it?
JAVA_HOME=$HOME/.sdkman/candidates/java/17.0.15-tem PATH=$JAVA_HOME/bin:$PATH ./gradlew spotlessApply apiDumpruby -e 'require "yaml"; [".github/workflows/system-tests-backend.yml", ".github/workflows/spring-boot-4-matrix.yml"].each{|p| YAML.load_file(p); puts "OK #{p}" }'📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps