Class GrpcNetServerAttributesGetter
java.lang.Object
io.opentelemetry.instrumentation.grpc.v1_6.internal.GrpcNetServerAttributesGetter
- All Implemented Interfaces:
io.opentelemetry.instrumentation.api.instrumenter.net.NetServerAttributesGetter<GrpcRequest,,io.grpc.Status> io.opentelemetry.instrumentation.api.instrumenter.network.ClientAttributesGetter<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 GrpcNetServerAttributesGetter
extends Object
implements io.opentelemetry.instrumentation.api.instrumenter.net.NetServerAttributesGetter<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 TypeMethodDescriptiongetClientInetSocketAddress(GrpcRequest request, io.grpc.Status status) getServerAddress(GrpcRequest grpcRequest) getServerInetSocketAddress(GrpcRequest grpcRequest, io.grpc.Status status) 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.network.ClientAttributesGetter
getClientAddress, getClientPort, getClientSocketAddress, getClientSocketPortMethods inherited from interface io.opentelemetry.instrumentation.api.instrumenter.net.NetServerAttributesGetter
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
-
GrpcNetServerAttributesGetter
public GrpcNetServerAttributesGetter()
-
-
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>
-
getClientInetSocketAddress
@Nullable public InetSocketAddress getClientInetSocketAddress(GrpcRequest request, @Nullable io.grpc.Status status) - Specified by:
getClientInetSocketAddressin interfaceio.opentelemetry.instrumentation.api.instrumenter.network.ClientAttributesGetter<GrpcRequest,io.grpc.Status>
-
getServerInetSocketAddress
@Nullable public InetSocketAddress getServerInetSocketAddress(GrpcRequest grpcRequest, @Nullable io.grpc.Status status) - Specified by:
getServerInetSocketAddressin interfaceio.opentelemetry.instrumentation.api.instrumenter.network.ServerAttributesGetter<GrpcRequest,io.grpc.Status>
-