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 StringgetPeerName(REQUEST request) default IntegergetPeerPort(REQUEST request) default StringgetSockFamily(REQUEST request, RESPONSE response) default StringgetSockPeerAddr(REQUEST request, RESPONSE response) default StringgetSockPeerName(REQUEST request, RESPONSE response) default IntegergetSockPeerPort(REQUEST request, RESPONSE response) default StringgetTransport(REQUEST request, RESPONSE response) default StringDeprecated.default IntegerDeprecated.UsegetPeerPort(Object)instead.default StringsockFamily(REQUEST request, RESPONSE response) Deprecated.UsegetSockFamily(Object, Object)instead.default StringsockPeerAddr(REQUEST request, RESPONSE response) Deprecated.UsegetSockPeerAddr(Object, Object)instead.default StringsockPeerName(REQUEST request, RESPONSE response) Deprecated.UsegetSockPeerName(Object, Object)instead.default IntegersockPeerPort(REQUEST request, RESPONSE response) Deprecated.UsegetSockPeerName(Object, Object)instead.default StringDeprecated.UsegetTransport(Object, Object)instead.
-
Method Details
-
getTransport
-
transport
Deprecated.UsegetTransport(Object, Object)instead.This method is deprecated and will be removed in the subsequent release. -
getPeerName
-
peerName
Deprecated.UsegetPeerName(Object)instead.This method is deprecated and will be removed in the subsequent release. -
getPeerPort
-
peerPort
Deprecated.UsegetPeerPort(Object)instead.This method is deprecated and will be removed in the subsequent release. -
getSockFamily
-
sockFamily
Deprecated.UsegetSockFamily(Object, Object)instead.This method is deprecated and will be removed in the subsequent release. -
getSockPeerAddr
-
sockPeerAddr
Deprecated.UsegetSockPeerAddr(Object, Object)instead.This method is deprecated and will be removed in the subsequent release. -
getSockPeerName
-
sockPeerName
Deprecated.UsegetSockPeerName(Object, Object)instead.This method is deprecated and will be removed in the subsequent release. -
getSockPeerPort
-
sockPeerPort
Deprecated.UsegetSockPeerName(Object, Object)instead.This method is deprecated and will be removed in the subsequent release.
-
getPeerName(Object)instead.