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 TypeMethodDescriptiongetPeerName(REQUEST request) getPeerPort(REQUEST request) default StringgetProtocolName(REQUEST request, RESPONSE response) Returns the application protocol used.default StringgetProtocolVersion(REQUEST request, RESPONSE response) Returns the version of the application protocol used.default StringgetSockFamily(REQUEST request, RESPONSE response) default StringgetSockPeerAddr(REQUEST request, RESPONSE response) default StringgetSockPeerName(REQUEST request, RESPONSE response) default IntegergetSockPeerPort(REQUEST request, RESPONSE response) getTransport(REQUEST request, RESPONSE response)
-
Method Details
-
getTransport
-
getProtocolName
Returns the application protocol used.Examples: `amqp`, `http`, `mqtt`.
-
getProtocolVersion
Returns the version of the application protocol used.Examples: `3.1.1`.
-
getPeerName
-
getPeerPort
-
getSockFamily
-
getSockPeerAddr
-
getSockPeerName
-
getSockPeerPort
-