Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3ad0f04

Browse files
committedFeb 27, 2025··
Merge branch 'main' of github.com:open-telemetry/opentelemetry-java-instrumentation into jmx-metric-lowercase-attribute
2 parents 80cfcad + 5f41b7f commit 3ad0f04

13 files changed

+35
-8
lines changed
 

‎CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88
`io.opentelemetry.instrumentation.httpclient` was deprecated in favor of the new package name
99
`io.opentelemetry.instrumentation.javahttpclient`
1010

11+
## Version 2.13.2 (2025-02-27)
12+
13+
### 🛠️ Bug fixes
14+
15+
- Backport: Fix Spring boot starter dependency resolution failure with Gradle and Java 11
16+
([#13402](https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/13402))
17+
1118
## Version 2.13.1 (2025-02-18)
1219

1320
### 🛠️ Bug fixes

‎conventions/src/main/kotlin/otel.java-conventions.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ abstract class NettyAlignmentRule : ComponentMetadataRule {
143143
with(ctx.details) {
144144
if (id.group == "io.netty" && id.name != "netty") {
145145
if (id.version.startsWith("4.1.")) {
146-
belongsTo("io.netty:netty-bom:4.1.118.Final", false)
146+
belongsTo("io.netty:netty-bom:4.1.119.Final", false)
147147
} else if (id.version.startsWith("4.0.")) {
148148
belongsTo("io.netty:netty-bom:4.0.56.Final", false)
149149
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Comparing source compatibility of opentelemetry-instrumentation-annotations-2.13.2.jar against opentelemetry-instrumentation-annotations-2.13.1.jar
2+
No changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Comparing source compatibility of opentelemetry-instrumentation-api-2.13.2.jar against opentelemetry-instrumentation-api-2.13.1.jar
2+
No changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Comparing source compatibility of opentelemetry-spring-boot-autoconfigure-2.13.2.jar against opentelemetry-spring-boot-autoconfigure-2.13.1.jar
2+
No changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Comparing source compatibility of opentelemetry-spring-boot-starter-2.13.2.jar against opentelemetry-spring-boot-starter-2.13.1.jar
2+
No changes.
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Comparing source compatibility of opentelemetry-instrumentation-annotations-2.14.0-SNAPSHOT.jar against opentelemetry-instrumentation-annotations-2.13.1.jar
1+
Comparing source compatibility of opentelemetry-instrumentation-annotations-2.14.0-SNAPSHOT.jar against opentelemetry-instrumentation-annotations-2.13.2.jar
22
No changes.
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Comparing source compatibility of opentelemetry-instrumentation-api-2.14.0-SNAPSHOT.jar against opentelemetry-instrumentation-api-2.13.1.jar
1+
Comparing source compatibility of opentelemetry-instrumentation-api-2.14.0-SNAPSHOT.jar against opentelemetry-instrumentation-api-2.13.2.jar
22
No changes.
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Comparing source compatibility of opentelemetry-spring-boot-autoconfigure-2.14.0-SNAPSHOT.jar against opentelemetry-spring-boot-autoconfigure-2.13.1.jar
1+
Comparing source compatibility of opentelemetry-spring-boot-autoconfigure-2.14.0-SNAPSHOT.jar against opentelemetry-spring-boot-autoconfigure-2.13.2.jar
22
No changes.
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Comparing source compatibility of opentelemetry-spring-boot-starter-2.14.0-SNAPSHOT.jar against opentelemetry-spring-boot-starter-2.13.1.jar
1+
Comparing source compatibility of opentelemetry-spring-boot-starter-2.14.0-SNAPSHOT.jar against opentelemetry-spring-boot-starter-2.13.2.jar
22
No changes.

‎instrumentation/runtime-telemetry/runtime-telemetry-java17/library/build.gradle.kts

+13
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,17 @@ tasks {
5757
dependsOn(testPS)
5858
dependsOn(testSerial)
5959
}
60+
61+
tasks {
62+
compileJava {
63+
// We compile this module for java 8 because it is used as a dependency in spring-boot-autoconfigure.
64+
// If this module is compiled for java 17 then gradle can figure out based on the metadata that
65+
// spring-boot-autoconfigure has a dependency that requires 17 and fails the build when it is used
66+
// in a project that targets an earlier java version.
67+
// https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/13384
68+
sourceCompatibility = "1.8"
69+
targetCompatibility = "1.8"
70+
options.release.set(null as Int?)
71+
}
72+
}
6073
}

‎instrumentation/spring/spring-webflux/spring-webflux-5.3/library/src/test/java/io/opentelemetry/instrumentation/spring/webflux/v5_3/SpringWebfluxServerInstrumentationTest.java

-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ public void stopServer(ConfigurableApplicationContext applicationContext) {
4141
protected void configure(HttpServerTestOptions options) {
4242
options.setContextPath(CONTEXT_PATH);
4343
options.setTestPathParam(true);
44-
options.setExpectedException(new RuntimeException(ServerEndpoint.EXCEPTION.getBody()));
4544

4645
options.setExpectedHttpRoute(
4746
(endpoint, method) -> {

‎instrumentation/spring/spring-webflux/spring-webflux-5.3/library/src/test/java/io/opentelemetry/instrumentation/spring/webflux/v5_3/TestWebfluxSpringBootApp.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@ Mono<ResponseEntity<String>> error() {
9797
}
9898

9999
@RequestMapping("/exception")
100-
Flux<ResponseEntity<String>> exception() throws Exception {
100+
Flux<ResponseEntity<String>> exception() {
101101
return Flux.just(
102102
controller(
103103
EXCEPTION,
104104
() -> {
105-
throw new RuntimeException(EXCEPTION.getBody());
105+
throw new IllegalStateException(EXCEPTION.getBody());
106106
}));
107107
}
108108

0 commit comments

Comments
 (0)
Please sign in to comment.