Skip to content

Commit 72a3db9

Browse files
committed
add semconv test for @WithSpan test
1 parent 35ed6c6 commit 72a3db9

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

instrumentation/guava-10.0/javaagent/build.gradle.kts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,19 @@ dependencies {
3131
testImplementation(project(":instrumentation-annotations"))
3232
testImplementation("io.opentelemetry:opentelemetry-extension-annotations")
3333
}
34+
35+
tasks {
36+
37+
val testStableSemconv by registering(Test::class) {
38+
jvmArgs("-Dotel.semconv-stability.opt-in=code")
39+
}
40+
41+
val testBothSemconv by registering(Test::class) {
42+
jvmArgs("-Dotel.semconv-stability.opt-in=code/dup")
43+
}
44+
45+
check {
46+
dependsOn(testStableSemconv)
47+
dependsOn(testBothSemconv)
48+
}
49+
}

instrumentation/opentelemetry-instrumentation-api/javaagent/build.gradle.kts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,19 @@ configurations.configureEach {
6666
}
6767

6868
tasks {
69+
70+
val testStableSemconv by registering(Test::class) {
71+
jvmArgs("-Dotel.semconv-stability.opt-in=code")
72+
}
73+
74+
val testBothSemconv by registering(Test::class) {
75+
jvmArgs("-Dotel.semconv-stability.opt-in=code/dup")
76+
}
77+
6978
check {
7079
dependsOn(testing.suites)
80+
dependsOn(testStableSemconv)
81+
dependsOn(testBothSemconv)
7182
}
83+
7284
}

instrumentation/reactor/reactor-3.1/javaagent/build.gradle.kts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,18 @@ testing {
5757
}
5858

5959
tasks {
60+
61+
val testStableSemconv by registering(Test::class) {
62+
jvmArgs("-Dotel.semconv-stability.opt-in=code")
63+
}
64+
65+
val testBothSemconv by registering(Test::class) {
66+
jvmArgs("-Dotel.semconv-stability.opt-in=code/dup")
67+
}
68+
6069
check {
6170
dependsOn(testing.suites)
71+
dependsOn(testStableSemconv)
72+
dependsOn(testBothSemconv)
6273
}
6374
}

0 commit comments

Comments
 (0)