Interface NetClientAttributesGetter<REQUEST,RESPONSE>
- All Superinterfaces:
NetworkAttributesGetter<REQUEST,,RESPONSE> ServerAttributesGetter<REQUEST,RESPONSE>
- All Known Subinterfaces:
HttpClientAttributesGetter<REQUEST,RESPONSE>
@Deprecated
public interface NetClientAttributesGetter<REQUEST,RESPONSE>
extends NetworkAttributesGetter<REQUEST,RESPONSE>, ServerAttributesGetter<REQUEST,RESPONSE>
Deprecated.
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 StringgetNetworkType(REQUEST request, RESPONSE response) Deprecated.Returns the OSI Network Layer or non-OSI equivalent.default StringgetSockFamily(REQUEST request, RESPONSE response) Deprecated.Returns the protocol address family which is used for communication.default StringgetTransport(REQUEST request, RESPONSE response) Deprecated.Methods inherited from interface io.opentelemetry.instrumentation.api.instrumenter.network.NetworkAttributesGetter
getNetworkProtocolName, getNetworkProtocolVersion, getNetworkTransportMethods inherited from interface io.opentelemetry.instrumentation.api.instrumenter.network.ServerAttributesGetter
getServerAddress, getServerInetSocketAddress, getServerPort, getServerSocketAddress, getServerSocketDomain, getServerSocketPort
-
Method Details
-
getTransport
Deprecated. -
getSockFamily
Deprecated.Returns the protocol address family which is used for communication.Examples:
inet,inet6By default, this method attempts to retrieve the address family using the
ServerAttributesGetter.getServerInetSocketAddress(Object, Object)method. If it is not implemented, it will simply returnnull. If the instrumented library does not exposeInetSocketAddressin its API, you might want to implement this method instead ofServerAttributesGetter.getServerSocketAddress(Object, Object). -
getNetworkType
Deprecated.Returns the OSI Network Layer or non-OSI equivalent.Examples:
ipv4,ipv6- Specified by:
getNetworkTypein interfaceNetworkAttributesGetter<REQUEST,RESPONSE>
-
...networkpackage instead. This class will be removed in the 2.0 release.