diff --git a/conventions/src/main/kotlin/io.opentelemetry.instrumentation.javaagent-testing.gradle.kts b/conventions/src/main/kotlin/io.opentelemetry.instrumentation.javaagent-testing.gradle.kts index 8a407e06f957..4a5b87c0e2e4 100644 --- a/conventions/src/main/kotlin/io.opentelemetry.instrumentation.javaagent-testing.gradle.kts +++ b/conventions/src/main/kotlin/io.opentelemetry.instrumentation.javaagent-testing.gradle.kts @@ -85,7 +85,6 @@ class JavaagentTestArgumentsProvider( // Reduce noise in assertion messages since we don't need to verify this in most tests. We check // in smoke tests instead. "-Dotel.javaagent.add-thread-details=false", - "-Dotel.metrics.exporter=otlp", "-Dotel.javaagent.experimental.indy=${findProperty("testIndy") == "true"}", // suppress repeated logging of "No metric data to export - skipping export." // since PeriodicMetricReader is configured with a short interval diff --git a/examples/distro/gradle/instrumentation.gradle b/examples/distro/gradle/instrumentation.gradle index b7edbb3c2637..9b60b55f99e0 100644 --- a/examples/distro/gradle/instrumentation.gradle +++ b/examples/distro/gradle/instrumentation.gradle @@ -52,7 +52,6 @@ tasks.withType(Test).configureEach { jvmArgs "-Dotel.javaagent.testing.fail-on-context-leak=true" // prevent sporadic gradle deadlocks, see SafeLogger for more details jvmArgs "-Dotel.javaagent.testing.transform-safe-logging.enabled=true" - jvmArgs "-Dotel.metrics.exporter=otlp" dependsOn shadowJar dependsOn configurations.testAgent.buildDependencies diff --git a/testing/agent-for-testing/build.gradle.kts b/testing/agent-for-testing/build.gradle.kts index 457c38cba5ca..5f9df0af2c28 100644 --- a/testing/agent-for-testing/build.gradle.kts +++ b/testing/agent-for-testing/build.gradle.kts @@ -44,7 +44,6 @@ tasks { afterEvaluate { withType().configureEach { jvmArgs("-Dotel.javaagent.debug=true") - jvmArgs("-Dotel.metrics.exporter=otlp") jvmArgumentProviders.add(JavaagentProvider(jar.flatMap { it.archiveFile })) }