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 Object
A set of attributes and the number of dropped attributes representation.
Since:
0.5
  • Constructor Details

    • Attributes

      Attributes()
  • Method Details

    • create

      public static SpanData.Attributes create(Map<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 Map<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