Class SummarizedSpan

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class SummarizedSpan extends Object
A node in the pruned trace tree.
  • Field Details

  • Constructor Details

  • Method Details

    • children

      public SummarizedSpan children(List<SummarizedSpan> children)
    • addChildrenItem

      public SummarizedSpan addChildrenItem(SummarizedSpan childrenItem)
    • getChildren

      public List<SummarizedSpan> getChildren()
      The child spans of this node in the pruned tree.
      Returns:
      children
    • setChildren

      public void setChildren(List<SummarizedSpan> children)
    • durationSeconds

      public SummarizedSpan durationSeconds(Double durationSeconds)
    • getDurationSeconds

      public Double getDurationSeconds()
      The duration of the span, in seconds.
      Returns:
      durationSeconds
    • setDurationSeconds

      public void setDurationSeconds(Double durationSeconds)
    • endTime

      public SummarizedSpan endTime(OffsetDateTime endTime)
    • getEndTime

      public OffsetDateTime getEndTime()
      The end time of the span, in RFC3339 format.
      Returns:
      endTime
    • setEndTime

      public void setEndTime(OffsetDateTime endTime)
    • error

      public SummarizedSpan error(APMSpanErrorFlag error)
    • getError

      public APMSpanErrorFlag getError()
      Error flag for a span. 1 when the span is in error, 0 otherwise.
      Returns:
      error
    • setError

      public void setError(APMSpanErrorFlag error)
    • hiddenChildSpansCount

      public SummarizedSpan hiddenChildSpansCount(Integer hiddenChildSpansCount)
    • getHiddenChildSpansCount

      public Integer getHiddenChildSpansCount()
      The number of child spans that were pruned from this node when summarizing the trace. maximum: 2147483647
      Returns:
      hiddenChildSpansCount
    • setHiddenChildSpansCount

      public void setHiddenChildSpansCount(Integer hiddenChildSpansCount)
    • meta

      public SummarizedSpan meta(Map<String,String> meta)
    • putMetaItem

      public SummarizedSpan putMetaItem(String key, String metaItem)
    • getMeta

      public Map<String,String> getMeta()
      String-valued tags attached to the span.
      Returns:
      meta
    • setMeta

      public void setMeta(Map<String,String> meta)
    • metrics

      public SummarizedSpan metrics(Map<String,Double> metrics)
    • putMetricsItem

      public SummarizedSpan putMetricsItem(String key, Double metricsItem)
    • getMetrics

      public Map<String,Double> getMetrics()
      Numeric metrics attached to the span.
      Returns:
      metrics
    • setMetrics

      public void setMetrics(Map<String,Double> metrics)
    • name

      public SummarizedSpan name(String name)
    • getName

      public String getName()
      The operation name of the span.
      Returns:
      name
    • setName

      public void setName(String name)
    • parentId

      public SummarizedSpan parentId(Long parentId)
    • getParentId

      public Long getParentId()
      The ID of the parent span, or 0 when the span is the trace root.
      Returns:
      parentId
    • setParentId

      public void setParentId(Long parentId)
    • resource

      public SummarizedSpan resource(String resource)
    • getResource

      public String getResource()
      The resource that the span describes.
      Returns:
      resource
    • setResource

      public void setResource(String resource)
    • service

      public SummarizedSpan service(String service)
    • getService

      public String getService()
      The name of the service that emitted the span.
      Returns:
      service
    • setService

      public void setService(String service)
    • spanId

      public SummarizedSpan spanId(Long spanId)
    • getSpanId

      public Long getSpanId()
      The span ID, as an unsigned 64-bit integer.
      Returns:
      spanId
    • setSpanId

      public void setSpanId(Long spanId)
    • spanKind

      public SummarizedSpan spanKind(String spanKind)
    • getSpanKind

      public String getSpanKind()
      The OpenTelemetry span kind, for example INTERNAL, SERVER, CLIENT, PRODUCER, or CONSUMER.
      Returns:
      spanKind
    • setSpanKind

      public void setSpanKind(String spanKind)
    • startTime

      public SummarizedSpan startTime(OffsetDateTime startTime)
    • getStartTime

      public OffsetDateTime getStartTime()
      The start time of the span, in RFC3339 format.
      Returns:
      startTime
    • setStartTime

      public void setStartTime(OffsetDateTime startTime)
    • putAdditionalProperty

      public SummarizedSpan 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:
      SummarizedSpan
    • 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 SummarizedSpan 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