Class GrpcNetClientAttributesGetter
java.lang.Object
io.opentelemetry.instrumentation.grpc.v1_6.internal.GrpcNetClientAttributesGetter
- All Implemented Interfaces:
io.opentelemetry.instrumentation.api.instrumenter.net.NetClientAttributesGetter<GrpcRequest,,io.grpc.Status> io.opentelemetry.instrumentation.api.instrumenter.network.NetworkAttributesGetter<GrpcRequest,,io.grpc.Status> io.opentelemetry.instrumentation.api.instrumenter.network.ServerAttributesGetter<GrpcRequest,io.grpc.Status>
public final class GrpcNetClientAttributesGetter
extends Object
implements io.opentelemetry.instrumentation.api.instrumenter.net.NetClientAttributesGetter<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 TypeMethodDescriptiongetServerAddress(GrpcRequest grpcRequest) getServerInetSocketAddress(GrpcRequest request, io.grpc.Status response) 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.instrumenter.net.NetClientAttributesGetter
getNetworkType, getSockFamily, getTransportMethods inherited from interface io.opentelemetry.instrumentation.api.instrumenter.network.NetworkAttributesGetter
getNetworkProtocolName, getNetworkProtocolVersion, getNetworkTransportMethods inherited from interface io.opentelemetry.instrumentation.api.instrumenter.network.ServerAttributesGetter
getServerSocketAddress, getServerSocketDomain, getServerSocketPort
-
Constructor Details
-
GrpcNetClientAttributesGetter
public GrpcNetClientAttributesGetter()
-
-
Method Details
-
getServerAddress
- Specified by:
getServerAddressin interfaceio.opentelemetry.instrumentation.api.instrumenter.network.ServerAttributesGetter<GrpcRequest,io.grpc.Status>
-
getServerPort
- Specified by:
getServerPortin interfaceio.opentelemetry.instrumentation.api.instrumenter.network.ServerAttributesGetter<GrpcRequest,io.grpc.Status>
-
getServerInetSocketAddress
@Nullable public InetSocketAddress getServerInetSocketAddress(GrpcRequest request, @Nullable io.grpc.Status response) - Specified by:
getServerInetSocketAddressin interfaceio.opentelemetry.instrumentation.api.instrumenter.network.ServerAttributesGetter<GrpcRequest,io.grpc.Status>
-