Class AttributesProcessor.JoinedAttributesProcessor
java.lang.Object
io.opentelemetry.sdk.metrics.internal.view.AttributesProcessor
io.opentelemetry.sdk.metrics.internal.view.AttributesProcessor.JoinedAttributesProcessor
- Enclosing class:
AttributesProcessor
@Immutable
private static final class AttributesProcessor.JoinedAttributesProcessor
extends AttributesProcessor
A
AttributesProcessor
that runs a sequence of processors.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Collection
<AttributesProcessor> private final boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) AttributesProcessor
prepend
(AttributesProcessor other) process
(Attributes incoming, Context context) Manipulates a set of attributes, returning the desired set.then
(AttributesProcessor other) Joins this attribute processor with another that operates after this one.toString()
boolean
If true, this ensures the `Context` argument of the attributes processor is always accurate.Methods inherited from class io.opentelemetry.sdk.metrics.internal.view.AttributesProcessor
append, appendBaggageByKeyName, filterByKeyName, noop, setIncludes
-
Field Details
-
processors
-
usesContextCache
private final boolean usesContextCache
-
-
Constructor Details
-
JoinedAttributesProcessor
JoinedAttributesProcessor(Collection<AttributesProcessor> processors)
-
-
Method Details
-
process
Description copied from class:AttributesProcessor
Manipulates a set of attributes, returning the desired set.- Specified by:
process
in classAttributesProcessor
- Parameters:
incoming
- Attributes associated with an incoming measurement.context
- The context associated with the measurement.
-
usesContext
public boolean usesContext()Description copied from class:AttributesProcessor
If true, this ensures the `Context` argument of the attributes processor is always accurate. This will prevents bound instruments from pre-locking their metric-attributes and defer until context is available.- Specified by:
usesContext
in classAttributesProcessor
-
then
Description copied from class:AttributesProcessor
Joins this attribute processor with another that operates after this one.- Overrides:
then
in classAttributesProcessor
-
prepend
-
toString
-