Skip to content

Commit 4e2b024

Browse files
authored
Remove print statements (#264)
Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
1 parent c1c40f4 commit 4e2b024

File tree

4 files changed

+0
-6
lines changed

4 files changed

+0
-6
lines changed

instrumentation/apache-httpclient-4.0/src/main/java/io/opentelemetry/javaagent/instrumentation/hypertrace/apachehttpclient/v4_0/readall/ApacheClientReadAllInstrumentationModule.java

-3
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ public static void exit(@Return Object response) {
205205
}
206206

207207
byte[] bodyBytes = buffer.toByteArray();
208-
System.out.printf("Captured response body: %s\n", new String(bodyBytes));
209208
currentSpan.setAttribute(
210209
HypertraceSemanticAttributes.HTTP_RESPONSE_BODY.getKey(), new String(bodyBytes));
211210
ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(bodyBytes);
@@ -216,8 +215,6 @@ public static void exit(@Return Object response) {
216215
// TODO log
217216
e.printStackTrace();
218217
}
219-
} else {
220-
System.out.println("\n\nIt is not HttpResponse #execute");
221218
}
222219
}
223220
}

instrumentation/servlet/servlet-3.0-no-wrapping/src/test/java/io/opentelemetry/javaagent/instrumentation/hypertrace/servlet/v3_0/nowrapping/response/ServletOutputStreamContextAccessInstrumentationModule.java

-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ static class TestAdvice {
7676
public static void enter(
7777
@Advice.Argument(0) ServletOutputStream servletOutputStream,
7878
@Advice.Argument(1) BoundedByteArrayOutputStream buffer) {
79-
System.out.println("adding to context");
8079
ContextStore<ServletOutputStream, BoundedByteArrayOutputStream> contextStore =
8180
InstrumentationContext.get(ServletOutputStream.class, BoundedByteArrayOutputStream.class);
8281
contextStore.put(servletOutputStream, buffer);

instrumentation/servlet/servlet-rw/src/main/java/io/opentelemetry/javaagent/instrumentation/hypertrace/servlet/rw/reader/BufferedReaderInstrumentation.java

-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ public static void exit(
200200
return;
201201
}
202202

203-
System.out.println("Capturing readLine");
204203
if (line == null) {
205204
bufferSpanPair.captureBody(HypertraceSemanticAttributes.HTTP_REQUEST_BODY);
206205
} else {

instrumentation/servlet/servlet-rw/src/test/java/org/TestBufferedReader.java

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ public TestBufferedReader(Reader in) {
2828

2929
@Override
3030
public String readLine() throws IOException {
31-
System.out.println("override readline");
3231
return super.readLine();
3332
}
3433
}

0 commit comments

Comments
 (0)