Class InetSocketAddressNetServerAttributesExtractor<REQUEST,RESPONSE>
- java.lang.Object
-
- io.opentelemetry.instrumentation.api.instrumenter.net.NetServerAttributesExtractor<REQUEST,RESPONSE>
-
- io.opentelemetry.instrumentation.api.instrumenter.net.InetSocketAddressNetServerAttributesExtractor<REQUEST,RESPONSE>
-
- All Implemented Interfaces:
AttributesExtractor<REQUEST,RESPONSE>
public abstract class InetSocketAddressNetServerAttributesExtractor<REQUEST,RESPONSE> extends NetServerAttributesExtractor<REQUEST,RESPONSE>
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 InetSocketAddressNetServerAttributesExtractor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract InetSocketAddressgetAddress(REQUEST request)StringpeerIp(REQUEST request)StringpeerName(REQUEST request)IntegerpeerPort(REQUEST request)-
Methods inherited from class io.opentelemetry.instrumentation.api.instrumenter.net.NetServerAttributesExtractor
onEnd, onStart, transport
-
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.AttributesExtractor
set
-
-
-
-
Method Detail
-
getAddress
@Nullable public abstract InetSocketAddress getAddress(REQUEST request)
-
peerName
@Nullable public final String peerName(REQUEST request)
- Specified by:
peerNamein classNetServerAttributesExtractor<REQUEST,RESPONSE>
-
peerPort
@Nullable public final Integer peerPort(REQUEST request)
- Specified by:
peerPortin classNetServerAttributesExtractor<REQUEST,RESPONSE>
-
-