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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.opentelemetry.api.trace.Span
build()
static String
buildSpanName
(String packageAndService, String method) Construct an RPC span name.io.opentelemetry.api.trace.Span
get()
static String
getRpcName
(org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.MethodDescriptor md) Retrieve the$method
value frommd
.static String
getRpcPackageAndService
(org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.ServiceDescriptor sd) Retrieve the combined$package.$service
value fromsd
.(package private) 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.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.$service
value fromsd
. -
getRpcName
public static String getRpcName(org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.MethodDescriptor md) Retrieve the$method
value frommd
. -
buildSpanName
Construct an RPC span name.
-