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 aInetSocketAddress. Most network libraries will provide access to aInetSocketAddressso this is a convenient alternative toNetServerAttributesExtractor. There is no meaning to implement both in the same instrumentation.
-
-
Constructor Summary
Constructors Constructor Description InetSocketAddressNetServerAttributesGetter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract InetSocketAddressgetAddress(REQUEST request)StringpeerIp(REQUEST request)IntegerpeerPort(REQUEST request)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.opentelemetry.instrumentation.api.instrumenter.net.NetServerAttributesGetter
transport
-
-
-
-
Method Detail
-
getAddress
@Nullable public abstract InetSocketAddress getAddress(REQUEST request)
-
peerPort
@Nullable public final Integer peerPort(REQUEST request)
- Specified by:
peerPortin interfaceNetServerAttributesGetter<REQUEST>
-
-