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
@Immutable public abstract static class SpanData.Attributes extends java.lang.Object
A set of attributes and the number of dropped attributes representation.- Since:
- 0.5
-
-
Constructor Summary
Constructors Constructor Description Attributes()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static SpanData.Attributes
create(java.util.Map<java.lang.String,AttributeValue> attributeMap, int droppedAttributesCount)
Returns a new immutableAttributes
.abstract java.util.Map<java.lang.String,AttributeValue>
getAttributeMap()
Returns the set of attributes.abstract int
getDroppedAttributesCount()
Returns the number of dropped attributes.
-
-
-
Method Detail
-
create
public static SpanData.Attributes create(java.util.Map<java.lang.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
public abstract java.util.Map<java.lang.String,AttributeValue> 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
-
-