Class IpcClientSpanBuilder

java.lang.Object
org.apache.hadoop.hbase.client.trace.IpcClientSpanBuilder
All Implemented Interfaces:
Supplier<io.opentelemetry.api.trace.Span>

@Private public class IpcClientSpanBuilder extends Object implements Supplier<io.opentelemetry.api.trace.Span>
Construct Span instances originating from the client side of an IPC.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • get

      public io.opentelemetry.api.trace.Span get()
      Specified by:
      get in interface Supplier<io.opentelemetry.api.trace.Span>
    • setMethodDescriptor

      public IpcClientSpanBuilder setMethodDescriptor(org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.MethodDescriptor md)
    • setRemoteAddress

    • build

      public io.opentelemetry.api.trace.Span build()
    • populateMethodDescriptorAttributes

      static void populateMethodDescriptorAttributes(Map<io.opentelemetry.api.common.AttributeKey<?>,Object> attributes, org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.MethodDescriptor md)
      Static utility method that performs the primary logic of this builder. It is visible to other classes in this package so that other builders can use this functionality as a mix-in.
      Parameters:
      attributes - the attributes map to be populated.
      md - the source of the RPC attribute values.
    • getRpcPackageAndService

      public static String getRpcPackageAndService(org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.ServiceDescriptor sd)
      Retrieve the combined $package.$service value from sd.
    • getRpcName

      public static String getRpcName(org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.MethodDescriptor md)
      Retrieve the $method value from md.
    • buildSpanName

      public static String buildSpanName(String packageAndService, String method)
      Construct an RPC span name.