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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.opentelemetry.api.trace.Spanbuild()static StringbuildSpanName(String packageAndService, String method) Construct an RPC span name.io.opentelemetry.api.trace.Spanget()static StringgetRpcName(org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.MethodDescriptor md) Retrieve the$methodvalue frommd.static StringgetRpcPackageAndService(org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.ServiceDescriptor sd) Retrieve the combined$package.$servicevalue fromsd.(package private) static voidpopulateMethodDescriptorAttributes(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.setMethodDescriptor(org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.MethodDescriptor md) setRemoteAddress(Address remoteAddress)
-
Field Details
-
name
-
attributes
-
-
Constructor Details
-
IpcClientSpanBuilder
public IpcClientSpanBuilder()
-
-
Method Details
-
get
-
setMethodDescriptor
public IpcClientSpanBuilder setMethodDescriptor(org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.MethodDescriptor md) -
setRemoteAddress
-
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.$servicevalue fromsd. -
getRpcName
public static String getRpcName(org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.MethodDescriptor md) Retrieve the$methodvalue frommd. -
buildSpanName
Construct an RPC span name.
-