-
Notifications
You must be signed in to change notification settings - Fork 40.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spring Boot 3.3.x dependencies do not converge for Micrometer Tracing and OpenTelemetry #43200
Comments
Attaching a small Maven project that reproduces the issue. Unzip it into a directory and run
|
micrometer-metrics/tracing#819 may be relevant |
Micrometer Tracing upgraded to OpenTelemetry 1.38.0 in 1.3.0. I'm only guessing, but I suspect that we missed this as it happened post-RC. Normally, we wouldn't upgrade to a new minor until a Boot minor. However, I consider this mismatch to be a bug as we're currently downgrading OpenTelemetry to an earlier version. I think we should upgrade to 1.38.0 in Boot 3.3.6. |
Thank you for the prompt fix! |
Found that
org.springframework.boot:spring-boot-dependencies:3.3.5
specifiesopentelemetry-bom
version1.37.0
andmicrometer-tracing-bom
version1.3.5
, but that version of micrometer-tracing depends on opentelemetry1.38.0
dependencies.This can be worked around by overloading the version of
opentelemetry-bom
to be version1.38.0
in the Maven<dependencyManagement>
section.There is a work around, but this is the first time I've ever seen Spring Boot dependencies not converge "out of the box". Is this intentional? Is there a reason that Spring Boot Dependencies does not use
opentelemetry-bom
version1.38.0
to align with the version ofmicrometer-tracing-bom
? Can this be fixed in the next version of Spring Boot 3.3.x and 3.4.x? Is there something that can be done to prevent this misalignment of these tracing dependencies from happening in the future?Here is a minimal
pom.xml
that reproduces the problem . Put this in a file calledpom.xml
and runmvn enforcer:enforce
:The issue in the above POM can be fixed by overriding the version of open-telemetry specified by Spring Boot Dependencies by adding the following:
The text was updated successfully, but these errors were encountered: