File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
instrumentation/tomcat/tomcat-jdbc/javaagent Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -19,18 +19,17 @@ dependencies {
1919val collectMetadata = findProperty(" collectMetadata" )?.toString() ? : " false"
2020
2121tasks {
22+ withType<Test >().configureEach {
23+ systemProperty(" collectMetadata" , collectMetadata)
24+ }
25+
2226 val testStableSemconv by registering(Test ::class ) {
2327 testClassesDirs = sourceSets.test.get().output.classesDirs
2428 classpath = sourceSets.test.get().runtimeClasspath
2529 jvmArgs(" -Dotel.semconv-stability.opt-in=database" )
26- systemProperty(" collectMetadata" , collectMetadata)
2730 systemProperty(" metadataConfig" , " otel.semconv-stability.opt-in=database" )
2831 }
2932
30- test {
31- systemProperty(" collectMetadata" , collectMetadata)
32- }
33-
3433 check {
3534 dependsOn(testStableSemconv)
3635 }
You can’t perform that action at this time.
0 commit comments