Skip to content

Commit

Permalink
Don't set metrics exporter to otlp for tests (#10208)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurit authored Jan 11, 2024
1 parent 7d1cf19 commit 2aaa7b1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion examples/distro/gradle/instrumentation.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion testing/agent-for-testing/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ tasks {
afterEvaluate {
withType<Test>().configureEach {
jvmArgs("-Dotel.javaagent.debug=true")
jvmArgs("-Dotel.metrics.exporter=otlp")

jvmArgumentProviders.add(JavaagentProvider(jar.flatMap { it.archiveFile }))
}
Expand Down

0 comments on commit 2aaa7b1

Please sign in to comment.