Class AttributesProcessor.AppendingAttributesProcessor
- java.lang.Object
-
- io.opentelemetry.sdk.metrics.internal.view.AttributesProcessor
-
- io.opentelemetry.sdk.metrics.internal.view.AttributesProcessor.AppendingAttributesProcessor
-
- Enclosing class:
- AttributesProcessor
private static class AttributesProcessor.AppendingAttributesProcessor extends AttributesProcessor
Processor which appends a static set ofAttributes
.
-
-
Field Summary
Fields Modifier and Type Field Description private Attributes
additionalAttributes
-
Constructor Summary
Constructors Modifier Constructor Description private
AppendingAttributesProcessor(Attributes additionalAttributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Attributes
process(Attributes incoming, Context context)
Manipulates a set of attributes, returning the desired set.java.lang.String
toString()
boolean
usesContext()
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
-
additionalAttributes
private final Attributes additionalAttributes
-
-
Constructor Detail
-
AppendingAttributesProcessor
private AppendingAttributesProcessor(Attributes additionalAttributes)
-
-
Method Detail
-
process
public Attributes process(Attributes incoming, Context context)
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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-