Skip to content

Commit 63031d3

Browse files
authored
Remove debug logging for apache http client 5.0 (#13558)
1 parent 4ec8f47 commit 63031d3

File tree

3 files changed

+0
-52
lines changed

3 files changed

+0
-52
lines changed

instrumentation/apache-httpclient/apache-httpclient-5.0/javaagent/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,5 @@ dependencies {
1919
tasks {
2020
withType<Test>().configureEach {
2121
systemProperty("testLatestDeps", findProperty("testLatestDeps") as Boolean)
22-
systemProperty("otel.instrumentation.apache-httpclient-5.debug", "true")
2322
}
2423
}

instrumentation/apache-httpclient/apache-httpclient-5.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/apachehttpclient/v5_0/ApacheHttpClientInstrumentationModule.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
package io.opentelemetry.javaagent.instrumentation.apachehttpclient.v5_0;
77

88
import com.google.auto.service.AutoService;
9-
import io.opentelemetry.javaagent.bootstrap.internal.AgentInstrumentationConfig;
109
import io.opentelemetry.javaagent.extension.instrumentation.InstrumentationModule;
1110
import io.opentelemetry.javaagent.extension.instrumentation.TypeInstrumentation;
1211
import java.util.Arrays;
@@ -21,15 +20,6 @@ public ApacheHttpClientInstrumentationModule() {
2120

2221
@Override
2322
public List<TypeInstrumentation> typeInstrumentations() {
24-
boolean debug =
25-
AgentInstrumentationConfig.get()
26-
.getBoolean("otel.instrumentation.apache-httpclient-5.debug", false);
27-
if (debug) {
28-
return Arrays.asList(
29-
new ApacheHttpClientInstrumentation(),
30-
new ApacheHttpAsyncClientInstrumentation(),
31-
new IoReactorDebugInstrumentation());
32-
}
3323
return Arrays.asList(
3424
new ApacheHttpClientInstrumentation(), new ApacheHttpAsyncClientInstrumentation());
3525
}

instrumentation/apache-httpclient/apache-httpclient-5.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/apachehttpclient/v5_0/IoReactorDebugInstrumentation.java

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)