Class GrpcTracingServerInterceptor.GrpcServerNetworkAttributesGetter

java.lang.Object
io.quarkus.opentelemetry.runtime.tracing.intrumentation.grpc.GrpcTracingServerInterceptor.GrpcServerNetworkAttributesGetter
All Implemented Interfaces:
io.opentelemetry.instrumentation.api.semconv.network.NetworkAttributesGetter<GrpcRequest,io.grpc.Status>, io.opentelemetry.instrumentation.api.semconv.network.ServerAttributesGetter<GrpcRequest>
Enclosing class:
GrpcTracingServerInterceptor

static class GrpcTracingServerInterceptor.GrpcServerNetworkAttributesGetter extends Object implements io.opentelemetry.instrumentation.api.semconv.network.NetworkAttributesGetter<GrpcRequest,io.grpc.Status>, io.opentelemetry.instrumentation.api.semconv.network.ServerAttributesGetter<GrpcRequest>
  • Constructor Details

    • GrpcServerNetworkAttributesGetter

      GrpcServerNetworkAttributesGetter()
  • Method Details

    • getServerAddress

      public String getServerAddress(GrpcRequest grpcRequest)
      Specified by:
      getServerAddress in interface io.opentelemetry.instrumentation.api.semconv.network.ServerAttributesGetter<GrpcRequest>
    • getServerPort

      public Integer getServerPort(GrpcRequest grpcRequest)
      Specified by:
      getServerPort in interface io.opentelemetry.instrumentation.api.semconv.network.ServerAttributesGetter<GrpcRequest>
    • getNetworkLocalInetSocketAddress

      public InetSocketAddress getNetworkLocalInetSocketAddress(GrpcRequest grpcRequest, @Nullable io.grpc.Status status)
      Specified by:
      getNetworkLocalInetSocketAddress in interface io.opentelemetry.instrumentation.api.semconv.network.NetworkAttributesGetter<GrpcRequest,io.grpc.Status>
    • getNetworkPeerInetSocketAddress

      public InetSocketAddress getNetworkPeerInetSocketAddress(GrpcRequest request, @Nullable io.grpc.Status status)
      Specified by:
      getNetworkPeerInetSocketAddress in interface io.opentelemetry.instrumentation.api.semconv.network.NetworkAttributesGetter<GrpcRequest,io.grpc.Status>