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
AAttributesProcessorthat runs a sequence of processors.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Collection<AttributesProcessor>processorsprivate booleanusesContextCache
-
Constructor Summary
Constructors Constructor Description JoinedAttributesProcessor(java.util.Collection<AttributesProcessor> processors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) AttributesProcessorprepend(AttributesProcessor other)Attributesprocess(Attributes incoming, Context context)Manipulates a set of attributes, returning the desired set.AttributesProcessorthen(AttributesProcessor other)Joins this attribute processor with another that operates after this one.java.lang.StringtoString()booleanusesContext()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 Detail
-
processors
private final java.util.Collection<AttributesProcessor> processors
-
usesContextCache
private final boolean usesContextCache
-
-
Constructor Detail
-
JoinedAttributesProcessor
JoinedAttributesProcessor(java.util.Collection<AttributesProcessor> processors)
-
-
Method Detail
-
process
public Attributes process(Attributes incoming, Context context)
Description copied from class:AttributesProcessorManipulates a set of attributes, returning the desired set.- Specified by:
processin classAttributesProcessor- Parameters:
incoming- Attributes associated with an incoming measurement.context- The context associated with the measurement.
-
usesContext
public boolean usesContext()
Description copied from class:AttributesProcessorIf 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:
usesContextin classAttributesProcessor
-
then
public AttributesProcessor then(AttributesProcessor other)
Description copied from class:AttributesProcessorJoins this attribute processor with another that operates after this one.- Overrides:
thenin classAttributesProcessor
-
prepend
AttributesProcessor prepend(AttributesProcessor other)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-