Class ConnectionSpanBuilder
java.lang.Object
org.apache.hadoop.hbase.client.trace.ConnectionSpanBuilder
- All Implemented Interfaces:
Supplier<io.opentelemetry.api.trace.Span>
@Private
public class ConnectionSpanBuilder
extends Object
implements Supplier<io.opentelemetry.api.trace.Span>
Construct
Span
instances originating from the client side of a connection.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAttribute
(io.opentelemetry.api.common.AttributeKey<T> key, T value) io.opentelemetry.api.trace.Span
build()
io.opentelemetry.api.trace.Span
get()
(package private) static void
populateConnectionAttributes
(Map<io.opentelemetry.api.common.AttributeKey<?>, Object> attributes, Supplier<String> connectionStringSupplier, Supplier<User> userSupplier) Static utility method that performs the primary logic of this builder.(package private) static void
populateConnectionAttributes
(Map<io.opentelemetry.api.common.AttributeKey<?>, Object> attributes, AsyncConnectionImpl conn) Static utility method that performs the primary logic of this builder.
-
Field Details
-
name
-
attributes
-
-
Constructor Details
-
ConnectionSpanBuilder
-
-
Method Details
-
get
-
setName
-
addAttribute
public <T> ConnectionSpanBuilder addAttribute(io.opentelemetry.api.common.AttributeKey<T> key, T value) -
build
-
populateConnectionAttributes
static void populateConnectionAttributes(Map<io.opentelemetry.api.common.AttributeKey<?>, Object> attributes, AsyncConnectionImpl conn) 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.conn
- the source of connection attribute values.
-
populateConnectionAttributes
static void populateConnectionAttributes(Map<io.opentelemetry.api.common.AttributeKey<?>, Object> attributes, Supplier<String> connectionStringSupplier, Supplier<User> userSupplier) 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.connectionStringSupplier
- the source of thedb.connection_string
attribute value.userSupplier
- the source of thedb.user
attribute value.
-