Class GrpcClientNetworkAttributesGetter

java.lang.Object
io.opentelemetry.instrumentation.grpc.v1_6.internal.GrpcClientNetworkAttributesGetter
All Implemented Interfaces:
io.opentelemetry.instrumentation.api.semconv.network.NetworkAttributesGetter<GrpcRequest,io.grpc.Status>, io.opentelemetry.instrumentation.api.semconv.network.ServerAttributesGetter<GrpcRequest>

public final class GrpcClientNetworkAttributesGetter extends Object implements io.opentelemetry.instrumentation.api.semconv.network.ServerAttributesGetter<GrpcRequest>, io.opentelemetry.instrumentation.api.semconv.network.NetworkAttributesGetter<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

    • GrpcClientNetworkAttributesGetter

      public GrpcClientNetworkAttributesGetter()
  • Method Details

    • getServerAddress

      @Nullable 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>
    • getNetworkPeerInetSocketAddress

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