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 Details

    • GrpcNetServerAttributesGetter

      public GrpcNetServerAttributesGetter()
  • Method Details

    • getServerAddress

      @Nullable public String getServerAddress(GrpcRequest grpcRequest)
      Specified by:
      getServerAddress in interface io.opentelemetry.instrumentation.api.instrumenter.network.ServerAttributesGetter<GrpcRequest,io.grpc.Status>
    • getServerPort

      public Integer getServerPort(GrpcRequest grpcRequest)
      Specified by:
      getServerPort in interface io.opentelemetry.instrumentation.api.instrumenter.network.ServerAttributesGetter<GrpcRequest,io.grpc.Status>
    • getClientInetSocketAddress

      @Nullable public InetSocketAddress getClientInetSocketAddress(GrpcRequest request, @Nullable io.grpc.Status status)
      Specified by:
      getClientInetSocketAddress in interface io.opentelemetry.instrumentation.api.instrumenter.network.ClientAttributesGetter<GrpcRequest,io.grpc.Status>
    • getServerInetSocketAddress

      @Nullable public InetSocketAddress getServerInetSocketAddress(GrpcRequest grpcRequest, @Nullable io.grpc.Status status)
      Specified by:
      getServerInetSocketAddress in interface io.opentelemetry.instrumentation.api.instrumenter.network.ServerAttributesGetter<GrpcRequest,io.grpc.Status>