Class GrpcClientNetworkAttributesGetter
java.lang.Object
io.opentelemetry.instrumentation.grpc.v1_6.internal.GrpcClientNetworkAttributesGetter
- All Implemented Interfaces:
io.opentelemetry.instrumentation.api.semconv.network.NetworkAttributesGetter<GrpcRequest,,io.grpc.Status> io.opentelemetry.instrumentation.api.semconv.network.ServerAttributesGetter<GrpcRequest>
public final class GrpcClientNetworkAttributesGetter
extends Object
implements io.opentelemetry.instrumentation.api.semconv.network.ServerAttributesGetter<GrpcRequest>, io.opentelemetry.instrumentation.api.semconv.network.NetworkAttributesGetter<GrpcRequest,io.grpc.Status>
This class is internal and is hence not for public use. Its APIs are unstable and can change at
any time.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetNetworkPeerInetSocketAddress(GrpcRequest request, io.grpc.Status response) getServerAddress(GrpcRequest grpcRequest) getServerPort(GrpcRequest grpcRequest) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.opentelemetry.instrumentation.api.semconv.network.NetworkAttributesGetter
getNetworkLocalAddress, getNetworkLocalInetSocketAddress, getNetworkLocalPort, getNetworkPeerAddress, getNetworkPeerPort, getNetworkProtocolName, getNetworkProtocolVersion, getNetworkTransport, getNetworkType
-
Constructor Details
-
GrpcClientNetworkAttributesGetter
public GrpcClientNetworkAttributesGetter()
-
-
Method Details
-
getServerAddress
- Specified by:
getServerAddressin interfaceio.opentelemetry.instrumentation.api.semconv.network.ServerAttributesGetter<GrpcRequest>
-
getServerPort
- Specified by:
getServerPortin interfaceio.opentelemetry.instrumentation.api.semconv.network.ServerAttributesGetter<GrpcRequest>
-
getNetworkPeerInetSocketAddress
@Nullable public InetSocketAddress getNetworkPeerInetSocketAddress(GrpcRequest request, @Nullable io.grpc.Status response) - Specified by:
getNetworkPeerInetSocketAddressin interfaceio.opentelemetry.instrumentation.api.semconv.network.NetworkAttributesGetter<GrpcRequest,io.grpc.Status>
-