@InterfaceAudience.Private public class TableOperationSpanBuilder extends Object implements Supplier<io.opentelemetry.api.trace.Span>
Span
instances originating from "table operations" -- the verbs in our public
API that interact with data in tables.Modifier and Type | Field and Description |
---|---|
private Map<io.opentelemetry.api.common.AttributeKey<?>,Object> |
attributes |
private TableName |
tableName |
private static String |
unknown |
Constructor and Description |
---|
TableOperationSpanBuilder(AsyncConnectionImpl conn) |
TableOperationSpanBuilder(ClusterConnection conn) |
private static final String unknown
private final Map<io.opentelemetry.api.common.AttributeKey<?>,Object> attributes
public TableOperationSpanBuilder(ClusterConnection conn)
public TableOperationSpanBuilder(AsyncConnectionImpl conn)
public io.opentelemetry.api.trace.Span get()
public TableOperationSpanBuilder setOperation(Scan scan)
public TableOperationSpanBuilder setOperation(Row row)
public TableOperationSpanBuilder setOperation(Collection<? extends Row> operations)
public TableOperationSpanBuilder setOperation(HBaseSemanticAttributes.Operation operation)
public TableOperationSpanBuilder setContainerOperations(RowMutations mutations)
public TableOperationSpanBuilder setContainerOperations(Row row)
public TableOperationSpanBuilder setContainerOperations(Collection<? extends Row> operations)
private static Set<HBaseSemanticAttributes.Operation> unpackRowOperations(Row row)
private static Set<HBaseSemanticAttributes.Operation> unpackRowOperations(CheckAndMutate cam)
public TableOperationSpanBuilder setContainerOperations(HBaseSemanticAttributes.Operation... operations)
public TableOperationSpanBuilder setTableName(TableName tableName)
public io.opentelemetry.api.trace.Span build()
private static HBaseSemanticAttributes.Operation valueFrom(Scan scan)
private static HBaseSemanticAttributes.Operation valueFrom(Row row)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.