Skip to content

Commit 9061146

Browse files
committed
Add Kafka Connect stable semconv test task
1 parent f69c3b9 commit 9061146

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

instrumentation/kafka/kafka-connect-2.6/testing/build.gradle.kts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,16 @@ tasks.withType<Test>().configureEach {
3737
systemProperty("io.opentelemetry.smoketest.agent.shadowJar.path", agentShadowJar.get().archiveFile.get().toString())
3838
systemProperty("collectMetadata", findProperty("collectMetadata"))
3939
}
40+
41+
tasks {
42+
val testStableSemconv by registering(Test::class) {
43+
testClassesDirs = sourceSets.test.get().output.classesDirs
44+
classpath = sourceSets.test.get().runtimeClasspath
45+
jvmArgs("-Dotel.semconv-stability.opt-in=database")
46+
systemProperty("metadataConfig", "otel.semconv-stability.opt-in=database")
47+
}
48+
49+
check {
50+
dependsOn(testStableSemconv)
51+
}
52+
}

0 commit comments

Comments
 (0)