Skip to content

build(opentelemetry): Bump OpenTelemetry dependencies#5225

Open
adinauer wants to merge 5 commits intomainfrom
build/bump-otel-dependencies
Open

build(opentelemetry): Bump OpenTelemetry dependencies#5225
adinauer wants to merge 5 commits intomainfrom
build/bump-otel-dependencies

Conversation

@adinauer
Copy link
Member

@adinauer adinauer commented Mar 23, 2026

📜 Description

  • Bump OpenTelemetry dependency versions in gradle/libs.versions.toml
    • otel: 1.57.01.60.1
    • otelInstrumentation: 2.23.02.26.0
    • otelInstrumentationAlpha: 2.23.0-alpha2.26.0-alpha
    • otelSemanticConventions: 1.37.01.40.0
    • otelSemanticConventionsAlpha: 1.37.0-alpha1.40.0-alpha
  • Enable Spring Boot 4 OpenTelemetry no-agent e2e/system tests in CI by uncommenting and activating:
    • .github/workflows/system-tests-backend.yml matrix entry
    • .github/workflows/spring-boot-4-matrix.yml job step
  • Update CHANGELOG.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 apiDump
  • Parsed workflow files after edits:
    • ruby -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

  • 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

  • Monitor CI stability for the newly enabled Spring Boot 4 no-agent system test lane

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>
@github-actions
Copy link
Contributor

github-actions bot commented Mar 23, 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).


New Features ✨

  • (replay) Add beforeErrorSampling callback to Session Replay by romtsn in #5214

Internal Changes 🔧

  • (deps) Update Native SDK to v0.13.3 by github-actions in #5215
  • (opentelemetry) Bump OpenTelemetry dependencies by adinauer in #5225

🤖 This preview updates automatically when you update the PR.

@sentry
Copy link

sentry bot commented Mar 23, 2026

Sentry Build Distribution

App Name App ID Version Configuration Install Page
SDK Size io.sentry.tests.size 8.36.0 (1) release Install Build

adinauer and others added 3 commits March 23, 2026 12:33
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>
@github-actions
Copy link
Contributor

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 308.91 ms 365.02 ms 56.11 ms
Size 0 B 0 B 0 B

Baseline results on branch: main

Startup times

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

@adinauer adinauer marked this pull request as ready for review March 23, 2026 15:23
Copy link
Collaborator

@lbloder lbloder left a comment

Choose a reason for hiding this comment

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

LGTM 👍

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.

2 participants