Class NoopAttributesProcessor
- java.lang.Object
-
- io.opentelemetry.sdk.metrics.internal.view.AttributesProcessor
-
- io.opentelemetry.sdk.metrics.internal.view.NoopAttributesProcessor
-
class NoopAttributesProcessor extends AttributesProcessor
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static NoopAttributesProcessorNOOP
-
Constructor Summary
Constructors Modifier Constructor Description privateNoopAttributesProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Attributesprocess(Attributes incoming, Context context)Manipulates a set of attributes, returning the desired set.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, then
-
-
-
-
Field Detail
-
NOOP
static final NoopAttributesProcessor NOOP
-
-
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
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-