diff --git a/testing-common/src/main/groovy/io/opentelemetry/instrumentation/test/base/HttpServerTest.groovy b/testing-common/src/main/groovy/io/opentelemetry/instrumentation/test/base/HttpServerTest.groovy index 11f23f7d64..bb782730a3 100644 --- a/testing-common/src/main/groovy/io/opentelemetry/instrumentation/test/base/HttpServerTest.groovy +++ b/testing-common/src/main/groovy/io/opentelemetry/instrumentation/test/base/HttpServerTest.groovy @@ -167,7 +167,6 @@ abstract class HttpServerTest extends InstrumentationSpecification imple [ SemanticAttributes.HTTP_ROUTE, SemanticAttributes.NET_TRANSPORT, - SemanticAttributes.NET_PEER_NAME, SemanticAttributes.NET_PEER_PORT ] as Set } @@ -695,10 +694,6 @@ abstract class HttpServerTest extends InstrumentationSpecification imple if (httpAttributes.contains(SemanticAttributes.NET_TRANSPORT)) { "$SemanticAttributes.NET_TRANSPORT" IP_TCP } - if (httpAttributes.contains(SemanticAttributes.NET_PEER_NAME)) { - // net.peer.name resolves to "127.0.0.1" on windows which is same as net.peer.ip so then not captured - "$SemanticAttributes.NET_PEER_NAME" { it == null || it == address.host } - } if (httpAttributes.contains(SemanticAttributes.NET_PEER_PORT)) { "$SemanticAttributes.NET_PEER_PORT" { (it instanceof Long && it.intValue() != port) } } @@ -760,10 +755,6 @@ abstract class HttpServerTest extends InstrumentationSpecification imple if (httpAttributes.contains(SemanticAttributes.NET_TRANSPORT)) { "$SemanticAttributes.NET_TRANSPORT" IP_TCP } - if (httpAttributes.contains(SemanticAttributes.NET_PEER_NAME)) { - // net.peer.name resolves to "127.0.0.1" on windows which is same as net.peer.ip so then not captured - "$SemanticAttributes.NET_PEER_NAME" { it == null || it == address.host } - } if (httpAttributes.contains(SemanticAttributes.NET_PEER_PORT)) { "$SemanticAttributes.NET_PEER_PORT" { (it instanceof Long && it.intValue() != port) } }