@InterfaceAudience.Private public class TableSpanBuilder extends Object implements Supplier<io.opentelemetry.api.trace.Span>
Span
instances involving data tables.Modifier and Type | Field and Description |
---|---|
private Map<io.opentelemetry.api.common.AttributeKey<?>,Object> |
attributes |
private String |
name |
Constructor and Description |
---|
TableSpanBuilder(AsyncConnectionImpl conn) |
TableSpanBuilder(ClusterConnection conn) |
Modifier and Type | Method and Description |
---|---|
io.opentelemetry.api.trace.Span |
build() |
io.opentelemetry.api.trace.Span |
get() |
(package private) static void |
populateTableNameAttributes(Map<io.opentelemetry.api.common.AttributeKey<?>,Object> attributes,
TableName tableName)
Static utility method that performs the primary logic of this builder.
|
TableSpanBuilder |
setName(String name) |
TableSpanBuilder |
setTableName(TableName tableName) |
private final Map<io.opentelemetry.api.common.AttributeKey<?>,Object> attributes
public TableSpanBuilder(ClusterConnection conn)
public TableSpanBuilder(AsyncConnectionImpl conn)
public io.opentelemetry.api.trace.Span get()
public TableSpanBuilder setName(String name)
public TableSpanBuilder setTableName(TableName tableName)
public io.opentelemetry.api.trace.Span build()
static void populateTableNameAttributes(Map<io.opentelemetry.api.common.AttributeKey<?>,Object> attributes, TableName tableName)
attributes
- the attributes map to be populated.tableName
- the source of attribute values.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.