Class HFileContextAttributesBuilderConsumer
java.lang.Object
org.apache.hadoop.hbase.io.hfile.trace.HFileContextAttributesBuilderConsumer
- All Implemented Interfaces:
Consumer<io.opentelemetry.api.common.AttributesBuilder>
@Private
public class HFileContextAttributesBuilderConsumer
extends Object
implements Consumer<io.opentelemetry.api.common.AttributesBuilder>
Populate fields on an AttributesBuilder
based on an HFileContext
. Passed around
inside an active Context
, indexed under CONTEXT_KEY
. The class is designed such
that calls to the accept(AttributesBuilder)
method are idempotent with regards to the
instance of this class.
The true and truly ridiculous class name should be something more like
HFileContext_ContextAttributes_AttributesBuilder_Consumer
.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final io.opentelemetry.context.ContextKey<Consumer<io.opentelemetry.api.common.AttributesBuilder>>
Used to place extract attributes pertaining to theHFileContext
that scopes the activeContext
.private final HFileContext
private HBaseSemanticAttributes.ReadType
private boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(io.opentelemetry.api.common.AttributesBuilder builder) setReadType
(HBaseSemanticAttributes.ReadType readType) Specify theHBaseSemanticAttributes.ReadType
involced in this IO operation.setSkipChecksum
(boolean skipChecksum) Specify that theChecksumType
should not be included in the attributes.
-
Field Details
-
CONTEXT_KEY
public static final io.opentelemetry.context.ContextKey<Consumer<io.opentelemetry.api.common.AttributesBuilder>> CONTEXT_KEYUsed to place extract attributes pertaining to theHFileContext
that scopes the activeContext
. -
hFileContext
-
skipChecksum
-
readType
-
-
Constructor Details
-
HFileContextAttributesBuilderConsumer
-
-
Method Details
-
setSkipChecksum
Specify that theChecksumType
should not be included in the attributes. -
setReadType
Specify theHBaseSemanticAttributes.ReadType
involced in this IO operation. -
accept
-