|
4 | 4 | import static io.opentelemetry.semconv.ServerAttributes.SERVER_ADDRESS; |
5 | 5 | import static io.opentelemetry.semconv.ServerAttributes.SERVER_PORT; |
6 | 6 |
|
7 | | -import io.netty.channel.ConnectTimeoutException; |
8 | 7 | import io.netty.handler.codec.PrematureChannelClosureException; |
9 | 8 | import io.netty.handler.timeout.ReadTimeoutException; |
10 | 9 | import io.opentelemetry.api.common.AttributeKey; |
11 | 10 | import io.opentelemetry.instrumentation.testing.junit.http.AbstractHttpClientTest; |
12 | 11 | import io.opentelemetry.instrumentation.testing.junit.http.HttpClientResult; |
13 | 12 | import io.opentelemetry.instrumentation.testing.junit.http.HttpClientTestOptions; |
14 | 13 | import java.net.URI; |
15 | | -import java.nio.channels.ClosedChannelException; |
16 | 14 | import java.time.Duration; |
17 | 15 | import java.util.Collections; |
18 | 16 | import java.util.HashSet; |
19 | | -import java.util.Locale; |
20 | 17 | import java.util.Map; |
21 | 18 | import java.util.Set; |
22 | 19 | import org.junit.jupiter.api.AfterAll; |
23 | 20 | import org.junit.jupiter.api.BeforeAll; |
24 | | -import org.junit.jupiter.api.condition.OS; |
25 | 21 | import ratpack.exec.Operation; |
26 | 22 | import ratpack.exec.Promise; |
27 | 23 | import ratpack.func.Action; |
@@ -193,19 +189,4 @@ private static String nettyExpectedClientSpanNameMapper(URI uri, String method) |
193 | 189 | } |
194 | 190 | return HttpClientTestOptions.DEFAULT_EXPECTED_CLIENT_SPAN_NAME_MAPPER.apply(uri, method); |
195 | 191 | } |
196 | | - |
197 | | - private static boolean isWindows() { |
198 | | - return System.getProperty("os.name").toLowerCase(Locale.ROOT).contains("win"); |
199 | | - } |
200 | | - |
201 | | - private static Throwable unwrapConnectionException(Throwable exception) { |
202 | | - if (exception == null) { |
203 | | - return null; |
204 | | - } |
205 | | - Throwable current = exception; |
206 | | - while (current.getCause() != null && current.getCause() != current) { |
207 | | - current = current.getCause(); |
208 | | - } |
209 | | - return current; |
210 | | - } |
211 | 192 | } |
0 commit comments