Skip to content

Commit a23a7ed

Browse files
authored
All the right method in input stream instrumentation (#153)
Signed-off-by: Pavol Loffay <[email protected]>
1 parent b3273de commit a23a7ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

instrumentation/apache-httpclient-4.0/src/main/java/io/opentelemetry/instrumentation/hypertrace/apachehttpclient/v4_0/InputStreamInstrumentationModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public static void exit(
139139
@Advice.Argument(1) int off,
140140
@Advice.Argument(2) int len)
141141
throws IOException {
142-
InputStreamUtils.readAll(thizz, b);
142+
InputStreamUtils.readNBytes(thizz, read, b, off, len);
143143
}
144144
}
145145
}

0 commit comments

Comments
 (0)