Class InetSocketAddressNetServerAttributesGetter<REQUEST>
java.lang.Object
io.opentelemetry.instrumentation.api.instrumenter.net.InetSocketAddressNetServerAttributesGetter<REQUEST>
- All Implemented Interfaces:
NetServerAttributesGetter<REQUEST>
public abstract class InetSocketAddressNetServerAttributesGetter<REQUEST>
extends Object
implements NetServerAttributesGetter<REQUEST>
Extractor of Network
attributes from a
InetSocketAddress. Most network libraries will provide access to a
InetSocketAddress so this is a convenient alternative to NetServerAttributesExtractor. There is no meaning to implement both in the same instrumentation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract InetSocketAddressgetAddress(REQUEST request) final Stringfinal IntegerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.opentelemetry.instrumentation.api.instrumenter.net.NetServerAttributesGetter
transport
-
Constructor Details
-
InetSocketAddressNetServerAttributesGetter
public InetSocketAddressNetServerAttributesGetter()
-
-
Method Details
-
getAddress
-
peerPort
- Specified by:
peerPortin interfaceNetServerAttributesGetter<REQUEST>
-
peerIp
- Specified by:
peerIpin interfaceNetServerAttributesGetter<REQUEST>
-