Fix rabbitmq latest deps test
Resolves
MODIFY
instrumentation/spring/spring-kafka-2.7/javaagent/build.gradle.kts
instrumentation/spring/spring-kafka-2.7/javaagent/build.gradle.kts
@@ -6,7 +6,7 @@ muzzle {
pass {
group.set("org.springframework.kafka")
module.set("spring-kafka")
- versions.set("[2.7.0,)")
+ versions.set("[2.7.0,3)")
assertInverse.set(true)
}
}
@@ -27,6 +27,8 @@ dependencies {
testLibrary("org.springframework.boot:spring-boot-starter-test:2.5.3")
testLibrary("org.springframework.boot:spring-boot-starter:2.5.3")
+
+ latestDepTestLibrary("org.springframework.kafka:spring-kafka:2.+")
}
testing {

MODIFY
instrumentation/spring/spring-kafka-2.7/library/build.gradle.kts
instrumentation/spring/spring-kafka-2.7/library/build.gradle.kts
@@ -18,6 +18,8 @@ dependencies {
testLibrary("org.springframework.boot:spring-boot-starter-test:2.5.3")
testLibrary("org.springframework.boot:spring-boot-starter:2.5.3")
+
+ latestDepTestLibrary("org.springframework.kafka:spring-kafka:2.+")
}
configurations.testRuntimeClasspath {

MODIFY
instrumentation/spring/spring-rabbit-1.0/javaagent/build.gradle.kts
instrumentation/spring/spring-rabbit-1.0/javaagent/build.gradle.kts
@@ -21,6 +21,8 @@ dependencies {
testLibrary("org.springframework.amqp:spring-rabbit:2.1.7.RELEASE")
testLibrary("org.springframework.boot:spring-boot-starter-test:1.5.22.RELEASE")
testLibrary("org.springframework.boot:spring-boot-starter:1.5.22.RELEASE")
+
+ latestDepTestLibrary("org.springframework.amqp:spring-rabbit:2.+")
}
tasks {

MODIFY
javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/ignore/AdditionalLibraryIgnoredTypesConfigurer.java
javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/ignore/AdditionalLibraryIgnoredTypesConfigurer.java
@@ -89,6 +89,7 @@ public class AdditionalLibraryIgnoredTypesConfigurer implements IgnoredTypesConf
builder
.ignoreClass("org.springframework.amqp.")
.allowClass("org.springframework.amqp.rabbit.connection.")
+ .allowClass("org.springframework.amqp.rabbit.core.RabbitTemplate$$Lambda$")
.allowClass("org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer");
builder

Fix rabbitmq latest deps test (#7262)

Resolves #7269

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>