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 TypeMethodDescriptionprotected abstract InetSocketAddressgetHostSocketAddress(REQUEST request) protected abstract InetSocketAddressgetPeerSocketAddress(REQUEST request) getSockFamily(REQUEST request) getSockHostAddr(REQUEST request) getSockHostPort(REQUEST request) final StringgetSockPeerAddr(REQUEST request) final IntegergetSockPeerPort(REQUEST request) Methods 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
getHostName, getHostPort, getProtocolName, getProtocolVersion, getTransport
-
Constructor Details
-
InetSocketAddressNetServerAttributesGetter
public InetSocketAddressNetServerAttributesGetter()
-
-
Method Details
-
getPeerSocketAddress
-
getHostSocketAddress
-
getSockFamily
- Specified by:
getSockFamilyin interfaceNetServerAttributesGetter<REQUEST>
-
getSockPeerAddr
- Specified by:
getSockPeerAddrin interfaceNetServerAttributesGetter<REQUEST>
-
getSockPeerPort
- Specified by:
getSockPeerPortin interfaceNetServerAttributesGetter<REQUEST>
-
getSockHostAddr
- Specified by:
getSockHostAddrin interfaceNetServerAttributesGetter<REQUEST>
-
getSockHostPort
- Specified by:
getSockHostPortin interfaceNetServerAttributesGetter<REQUEST>
-