Class GrpcTracingServerInterceptor.GrpcServerNetworkAttributesGetter
- java.lang.Object
-
- io.quarkus.opentelemetry.runtime.tracing.intrumentation.grpc.GrpcTracingServerInterceptor.GrpcServerNetworkAttributesGetter
-
- All Implemented Interfaces:
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>
- Enclosing class:
- GrpcTracingServerInterceptor
static class GrpcTracingServerInterceptor.GrpcServerNetworkAttributesGetter extends Object implements io.opentelemetry.instrumentation.api.instrumenter.network.NetworkAttributesGetter<GrpcRequest,io.grpc.Status>, io.opentelemetry.instrumentation.api.instrumenter.network.ServerAttributesGetter<GrpcRequest,io.grpc.Status>, io.opentelemetry.instrumentation.api.instrumenter.network.ClientAttributesGetter<GrpcRequest,io.grpc.Status>
-
-
Constructor Summary
Constructors Constructor Description GrpcServerNetworkAttributesGetter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InetSocketAddressgetClientInetSocketAddress(GrpcRequest grpcRequest, io.grpc.Status status)StringgetServerAddress(GrpcRequest grpcRequest)InetSocketAddressgetServerInetSocketAddress(GrpcRequest grpcRequest, io.grpc.Status status)IntegergetServerPort(GrpcRequest grpcRequest)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.opentelemetry.instrumentation.api.instrumenter.network.ClientAttributesGetter
getClientAddress, getClientPort, getClientSocketAddress, getClientSocketPort
-
-
-
-
Method Detail
-
getServerAddress
public String getServerAddress(GrpcRequest grpcRequest)
- Specified by:
getServerAddressin interfaceio.opentelemetry.instrumentation.api.instrumenter.network.ServerAttributesGetter<GrpcRequest,io.grpc.Status>
-
getServerPort
public Integer getServerPort(GrpcRequest grpcRequest)
- Specified by:
getServerPortin interfaceio.opentelemetry.instrumentation.api.instrumenter.network.ServerAttributesGetter<GrpcRequest,io.grpc.Status>
-
getClientInetSocketAddress
public InetSocketAddress getClientInetSocketAddress(GrpcRequest grpcRequest, io.grpc.Status status)
- Specified by:
getClientInetSocketAddressin interfaceio.opentelemetry.instrumentation.api.instrumenter.network.ClientAttributesGetter<GrpcRequest,io.grpc.Status>
-
getServerInetSocketAddress
public InetSocketAddress getServerInetSocketAddress(GrpcRequest grpcRequest, io.grpc.Status status)
- Specified by:
getServerInetSocketAddressin interfaceio.opentelemetry.instrumentation.api.instrumenter.network.ServerAttributesGetter<GrpcRequest,io.grpc.Status>
-
-