Class 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 Detail

      • Attributes

        Attributes()
    • Method Detail

      • create

        public static SpanData.Attributes create​(java.util.Map<java.lang.String,​AttributeValue> attributeMap,
                                                 int droppedAttributesCount)
        Returns a new immutable Attributes.
        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