Class AdviceAttributesProcessor
java.lang.Object
io.opentelemetry.sdk.metrics.internal.view.AttributesProcessor
io.opentelemetry.sdk.metrics.internal.view.AdviceAttributesProcessor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprocess(Attributes incoming, Context context) Manipulates a set of attributes, returning the desired set.toString()booleanIf true, this ensures the `Context` argument of the attributes processor is always accurate.Methods inherited from class AttributesProcessor
append, appendBaggageByKeyName, filterByKeyName, noop, setIncludes, then
-
Field Details
-
attributeKeys
-
-
Constructor Details
-
AdviceAttributesProcessor
AdviceAttributesProcessor(List<AttributeKey<?>> adviceAttributeKeys)
-
-
Method Details
-
process
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
-