Skip to content

Commit 3926e86

Browse files
committed
gRPC old/stable semconv support
1 parent a4b0d0e commit 3926e86

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

instrumentation/armeria/armeria-grpc-1.14/javaagent/build.gradle.kts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,20 @@ tasks {
7676
}
7777
}
7878

79+
tasks {
80+
val testStableSemconv by registering(Test::class) {
81+
testClassesDirs = sourceSets.test.get().output.classesDirs
82+
classpath = sourceSets.test.get().runtimeClasspath
83+
84+
jvmArgs("-Dotel.semconv-stability.opt-in=rpc")
85+
systemProperty("metadataConfig", "otel.semconv-stability.opt-in=rpc")
86+
}
87+
88+
check {
89+
dependsOn(testStableSemconv)
90+
}
91+
}
92+
7993
if (findProperty("denyUnsafe") as Boolean) {
8094
tasks.withType<Test>().configureEach {
8195
enabled = false

0 commit comments

Comments
 (0)