@InterfaceAudience.Private public class IpcClientSpanBuilder extends Object implements Supplier<io.opentelemetry.api.trace.Span>
Span
instances originating from the client side of an IPC.Modifier and Type | Field and Description |
---|---|
private Map<io.opentelemetry.api.common.AttributeKey<?>,Object> |
attributes |
private String |
name |
Constructor and Description |
---|
IpcClientSpanBuilder() |
Modifier and Type | Method and Description |
---|---|
io.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 from md . |
static String |
getRpcPackageAndService(org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.ServiceDescriptor sd)
Retrieve the combined
$package.$service value from sd . |
(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.
|
IpcClientSpanBuilder |
setMethodDescriptor(org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.MethodDescriptor md) |
IpcClientSpanBuilder |
setRemoteAddress(Address remoteAddress) |
private final Map<io.opentelemetry.api.common.AttributeKey<?>,Object> attributes
public IpcClientSpanBuilder()
public io.opentelemetry.api.trace.Span get()
public IpcClientSpanBuilder setMethodDescriptor(org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.MethodDescriptor md)
public IpcClientSpanBuilder setRemoteAddress(Address remoteAddress)
public io.opentelemetry.api.trace.Span build()
static void populateMethodDescriptorAttributes(Map<io.opentelemetry.api.common.AttributeKey<?>,Object> attributes, org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.MethodDescriptor md)
attributes
- the attributes map to be populated.md
- the source of the RPC attribute values.public static String getRpcPackageAndService(org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.ServiceDescriptor sd)
$package.$service
value from sd
.public static String getRpcName(org.apache.hbase.thirdparty.com.google.protobuf.Descriptors.MethodDescriptor md)
$method
value from md
.public static String buildSpanName(String packageAndService, String method)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.