Class AttributeUtil
java.lang.Object
io.opentelemetry.sdk.internal.AttributeUtil
This class is internal and is hence not for public use. Its APIs are unstable and can change at
any time.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectapplyAttributeLengthLimit(Object value, int lengthLimit) Apply thelengthLimitto the attributevalue.static AttributesapplyAttributesLimit(Attributes attributes, int countLimit, int lengthLimit) Apply thecountLimitandlengthLimitto the attributes.
-
Method Details
-
applyAttributesLimit
public static Attributes applyAttributesLimit(Attributes attributes, int countLimit, int lengthLimit) Apply thecountLimitandlengthLimitto the attributes.If all attributes fall within the limits, return as is. Else, return an attributes instance with the limits applied.
countLimitlimits the number of unique attribute keys.lengthLimitlimits the length of attribute string and string list values. -
applyAttributeLengthLimit
-