Class TraceAttributes

java.lang.Object
com.datadog.api.client.v2.model.TraceAttributes

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class TraceAttributes extends Object
The attributes of a trace returned by the Get trace by ID endpoint.
  • Field Details

  • Constructor Details

    • TraceAttributes

      public TraceAttributes()
    • TraceAttributes

      public TraceAttributes(Boolean isTruncated, List<APMTraceSpan> spans)
  • Method Details

    • isTruncated

      public TraceAttributes isTruncated(Boolean isTruncated)
    • getIsTruncated

      public Boolean getIsTruncated()
      Indicates whether the trace was truncated because its size exceeded the maximum response payload.
      Returns:
      isTruncated
    • setIsTruncated

      public void setIsTruncated(Boolean isTruncated)
    • spans

      public TraceAttributes spans(List<APMTraceSpan> spans)
    • addSpansItem

      public TraceAttributes addSpansItem(APMTraceSpan spansItem)
    • getSpans

      public List<APMTraceSpan> getSpans()
      The list of spans that compose the trace.
      Returns:
      spans
    • setSpans

      public void setSpans(List<APMTraceSpan> spans)
    • putAdditionalProperty

      public TraceAttributes putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - The arbitrary key to set
      value - The associated value
      Returns:
      TraceAttributes
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      The additional properties
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - The arbitrary key to get
      Returns:
      The specific additional property for the given key
    • equals

      public boolean equals(Object o)
      Return true if this TraceAttributes object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object