Skip to content

Commit 7b79e30

Browse files
committed
fix
1 parent 8031f11 commit 7b79e30

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

instrumentation/ratpack/ratpack-1.4/testing/src/main/java/io/opentelemetry/instrumentation/ratpack/client/AbstractRatpackHttpClientTest.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -176,14 +176,6 @@ protected boolean useNettyClientAttributes() {
176176
}
177177

178178
private static Throwable nettyClientSpanErrorMapper(URI uri, Throwable exception) {
179-
// On Windows, Netty wraps exceptions in AbstractChannel.AnnotatedConnectException
180-
// Unwrap to get the actual exception type
181-
if (exception != null
182-
&& exception.getClass().getName().contains("AnnotatedConnectException")
183-
&& exception.getCause() != null) {
184-
exception = exception.getCause();
185-
}
186-
187179
if (uri.toString().equals("https://192.0.2.1/")) {
188180
return new ConnectTimeoutException(
189181
"connection timed out"

instrumentation/ratpack/ratpack-1.7/library/src/test/java/io/opentelemetry/instrumentation/ratpack/v1_7/AbstractRatpackHttpClientTest.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,6 @@ protected void configure(HttpClientTestOptions.Builder optionsBuilder) {
140140

141141
optionsBuilder.setClientSpanErrorMapper(
142142
(uri, exception) -> {
143-
// On Windows, Netty wraps exceptions in AbstractChannel.AnnotatedConnectException
144-
// Unwrap to get the actual exception type
145-
if (exception != null
146-
&& exception.getClass().getName().contains("AnnotatedConnectException")
147-
&& exception.getCause() != null) {
148-
exception = exception.getCause();
149-
}
150-
151143
if (uri.toString().equals("https://192.0.2.1/")) {
152144
return new ConnectTimeoutException("Connect timeout (PT2S) connecting to " + uri);
153145
} else if (OS.WINDOWS.isCurrentOs() && uri.toString().equals("http://localhost:61/")) {

0 commit comments

Comments
 (0)