Skip to content

Commit 8031f11

Browse files
committed
testing
1 parent a2e7bbc commit 8031f11

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,7 @@ protected boolean useNettyClientAttributes() {
178178
private static Throwable nettyClientSpanErrorMapper(URI uri, Throwable exception) {
179179
// On Windows, Netty wraps exceptions in AbstractChannel.AnnotatedConnectException
180180
// Unwrap to get the actual exception type
181-
if (OS.WINDOWS.isCurrentOs()
182-
&& exception != null
181+
if (exception != null
183182
&& exception.getClass().getName().contains("AnnotatedConnectException")
184183
&& exception.getCause() != null) {
185184
exception = exception.getCause();

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,7 @@ protected void configure(HttpClientTestOptions.Builder optionsBuilder) {
142142
(uri, exception) -> {
143143
// On Windows, Netty wraps exceptions in AbstractChannel.AnnotatedConnectException
144144
// Unwrap to get the actual exception type
145-
if (OS.WINDOWS.isCurrentOs()
146-
&& exception != null
145+
if (exception != null
147146
&& exception.getClass().getName().contains("AnnotatedConnectException")
148147
&& exception.getCause() != null) {
149148
exception = exception.getCause();

0 commit comments

Comments
 (0)