Skip to content

Commit a4f6a6d

Browse files
committed
Mirror test system properties on OpenAI testExceptionSignalLogs tasks
1 parent 21d5966 commit a4f6a6d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

instrumentation/openai/openai-java-1.1/javaagent/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dependencies {
2222
}
2323

2424
tasks {
25-
test {
25+
withType<Test>().configureEach {
2626
systemProperty("testLatestDeps", otelProps.testLatestDeps)
2727
// TODO run tests both with and without genai message capture
2828

@@ -34,11 +34,11 @@ tasks {
3434
testClassesDirs = sourceSets.test.get().output.classesDirs
3535
classpath = sourceSets.test.get().runtimeClasspath
3636

37-
systemProperty("otel.instrumentation.genai.capture-message-content", "true")
3837
filter {
3938
includeTestsMatching("EmbeddingsTest")
4039
}
4140
jvmArgs("-Dotel.semconv.exception.signal.preview=logs")
41+
systemProperty("metadataConfig", "otel.semconv.exception.signal.preview=logs")
4242
}
4343

4444
check {

instrumentation/openai/openai-java-1.1/library/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dependencies {
1010
}
1111

1212
tasks {
13-
test {
13+
withType<Test>().configureEach {
1414
systemProperty("testLatestDeps", otelProps.testLatestDeps)
1515
}
1616

0 commit comments

Comments
 (0)