Interface NetServerAttributesGetter<REQUEST>
- All Known Implementing Classes:
InetSocketAddressNetServerAttributesGetter
public interface NetServerAttributesGetter<REQUEST>
An interface for getting server-based network attributes. It adapts an instrumentation-specific
request type into the 3 common attributes (transport, sockPeerPort, sockPeerAddr).
Instrumentation authors will create implementations of this interface for their specific
server library/framework. It will be used by the NetServerAttributesExtractor to obtain
the various network attributes in a type-generic way.
-
Method Summary
Modifier and TypeMethodDescriptiongetHostName(REQUEST request) getHostPort(REQUEST request) default StringgetProtocolName(REQUEST request) Returns the application protocol used.default StringgetProtocolVersion(REQUEST request) Returns the version of the application protocol used.default StringgetSockFamily(REQUEST request) default StringgetSockHostAddr(REQUEST request) default IntegergetSockHostPort(REQUEST request) default StringgetSockPeerAddr(REQUEST request) default IntegergetSockPeerPort(REQUEST request) getTransport(REQUEST request)
-
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`.
-
getHostName
-
getHostPort
-
getSockFamily
-
getSockPeerAddr
-
getSockPeerPort
-
getSockHostAddr
-
getSockHostPort
-