Class InetSocketAddressNetClientAttributesGetter<REQUEST,RESPONSE>
java.lang.Object
io.opentelemetry.instrumentation.api.instrumenter.net.InetSocketAddressNetClientAttributesGetter<REQUEST,RESPONSE>
- All Implemented Interfaces:
NetClientAttributesGetter<REQUEST,RESPONSE>
public abstract class InetSocketAddressNetClientAttributesGetter<REQUEST,RESPONSE>
extends Object
implements NetClientAttributesGetter<REQUEST,RESPONSE>
Extractor of Network
attributes from a
InetSocketAddress. Most network libraries will provide access to a
InetSocketAddress so this is a convenient alternative to NetClientAttributesExtractor. There is no meaning to implement both in the same instrumentation.-
Constructor Summary
Constructors -
Method Summary
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.NetClientAttributesGetter
transport
-
Constructor Details
-
InetSocketAddressNetClientAttributesGetter
public InetSocketAddressNetClientAttributesGetter()
-
-
Method Details
-
getAddress
@Nullable public abstract InetSocketAddress getAddress(REQUEST request, @Nullable RESPONSE response) -
peerName
- Specified by:
peerNamein interfaceNetClientAttributesGetter<REQUEST,RESPONSE>
-
peerPort
- Specified by:
peerPortin interfaceNetClientAttributesGetter<REQUEST,RESPONSE>
-
peerIp
- Specified by:
peerIpin interfaceNetClientAttributesGetter<REQUEST,RESPONSE>
-