Package io.opencensus.trace.export
Class SpanData.Attributes
java.lang.Object
io.opencensus.trace.export.SpanData.Attributes
- Direct Known Subclasses:
AutoValue_SpanData_Attributes
- Enclosing class:
SpanData
A set of attributes and the number of dropped attributes representation.
- Since:
- 0.5
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SpanData.Attributes
create
(Map<String, AttributeValue> attributeMap, int droppedAttributesCount) Returns a new immutableAttributes
.abstract Map
<String, AttributeValue> Returns the set of attributes.abstract int
Returns the number of dropped attributes.
-
Constructor Details
-
Attributes
Attributes()
-
-
Method Details
-
create
public static SpanData.Attributes create(Map<String, AttributeValue> attributeMap, int droppedAttributesCount) Returns a new immutableAttributes
.- Parameters:
attributeMap
- the set of attributes.droppedAttributesCount
- the number of dropped attributes.- Returns:
- a new immutable
Attributes
. - Since:
- 0.5
-
getAttributeMap
Returns the set of attributes.- Returns:
- the set of attributes.
- Since:
- 0.5
-
getDroppedAttributesCount
public abstract int getDroppedAttributesCount()Returns the number of dropped attributes.- Returns:
- the number of dropped attributes.
- Since:
- 0.5
-