Skip to content

Commit 9432e76

Browse files
committed
gradle
1 parent 645c86d commit 9432e76

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

instrumentation/aws-sdk/aws-sdk-2.2/javaagent/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ tasks {
166166
}
167167

168168
val testStableSemconv by registering(Test::class) {
169+
filter {
170+
excludeTestsMatching("Aws2SqsSuppressReceiveSpansTest")
171+
}
172+
systemProperty("otel.instrumentation.messaging.experimental.receive-telemetry.enabled", "true")
169173
jvmArgs("-Dotel.semconv-stability.opt-in=database")
170174
}
171175

instrumentation/influxdb-2.4/javaagent/build.gradle.kts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ testing {
3636
}
3737

3838
tasks {
39-
test {
39+
withType<Test>().configureEach {
40+
// we disable the okhttp instrumentation, so we don't need to assert on the okhttp spans
41+
// from the okhttp instrumentation we need OkHttp3IgnoredTypesConfigurer to fix context leaks
42+
jvmArgs("-Dotel.instrumentation.okhttp.enabled=false")
4043
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
4144
}
4245

@@ -45,14 +48,6 @@ tasks {
4548
dependsOn(testing.suites)
4649
}
4750
}
48-
}
49-
50-
tasks {
51-
withType<Test>().configureEach {
52-
// we disable the okhttp instrumentation, so we don't need to assert on the okhttp spans
53-
// from the okhttp instrumentation we need OkHttp3IgnoredTypesConfigurer to fix context leaks
54-
jvmArgs("-Dotel.instrumentation.okhttp.enabled=false")
55-
}
5651

5752
val testStableSemconv by registering(Test::class) {
5853
jvmArgs("-Dotel.semconv-stability.opt-in=database")

0 commit comments

Comments
 (0)