Interface NetClientAttributesGetter<REQUEST,RESPONSE>
- All Known Implementing Classes:
InetSocketAddressNetClientAttributesGetter
public interface NetClientAttributesGetter<REQUEST,RESPONSE>
An interface for getting client-based network attributes. It adapts from a type-specific request
and response into the 4 common network attribute values.
Instrumentation authors will create implementations of this interface for their specific library/framework. It will be used by the NetClientAttributesExtractor to obtain the various network attributes in a type-generic way.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Stringdefault StringDeprecated.This method is deprecated and will be removed in the next release.default Integerdefault IntegerDeprecated.This method is deprecated and will be removed in the next release.default StringsockFamily(REQUEST request, RESPONSE response) default StringsockPeerAddr(REQUEST request, RESPONSE response) default StringsockPeerName(REQUEST request, RESPONSE response) default IntegersockPeerPort(REQUEST request, RESPONSE response)
-
Method Details
-
transport
-
peerName
Deprecated.This method is deprecated and will be removed in the next release.Logical remote hostname. -
peerName
-
peerPort
Deprecated.This method is deprecated and will be removed in the next release.Logical remote port number. -
peerPort
-
sockFamily
-
sockPeerAddr
-
sockPeerName
-
sockPeerPort
-