Interface RunTraceStats.Builder

  • Method Details

    • status

      RunTraceStats.Builder status(String status)

      The status of the stats. PENDING from the end of the run until they are computed, usually a minute or two and up to about 15 minutes while the run's spans are still arriving.

      Parameters:
      status - The status of the stats. PENDING from the end of the run until they are computed, usually a minute or two and up to about 15 minutes while the run's spans are still arriving.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The status of the stats. PENDING from the end of the run until they are computed, usually a minute or two and up to about 15 minutes while the run's spans are still arriving.

      Parameters:
      status - The status of the stats. PENDING from the end of the run until they are computed, usually a minute or two and up to about 15 minutes while the run's spans are still arriving.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • statusReason

      RunTraceStats.Builder statusReason(String statusReason)

      Why the stats are UNAVAILABLE. Absent otherwise.

      Parameters:
      statusReason - Why the stats are UNAVAILABLE. Absent otherwise.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • statusReason

      RunTraceStats.Builder statusReason(TraceStatsStatusReason statusReason)

      Why the stats are UNAVAILABLE. Absent otherwise.

      Parameters:
      statusReason - Why the stats are UNAVAILABLE. Absent otherwise.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • casesRead

      RunTraceStats.Builder casesRead(Integer casesRead)

      The number of cases with a traced turn that were read. All such cases, up to 1,000; beyond that, the 1,000 whose caseId has the smallest SHA-256 hash, or fewer when their turns exceed 10,000 traces.

      Parameters:
      casesRead - The number of cases with a traced turn that were read. All such cases, up to 1,000; beyond that, the 1,000 whose caseId has the smallest SHA-256 hash, or fewer when their turns exceed 10,000 traces.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sampled

      RunTraceStats.Builder sampled(Boolean sampled)

      Whether the run had more cases with a traced turn than casesRead.

      Parameters:
      sampled - Whether the run had more cases with a traced turn than casesRead.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • casesWithSpans

      RunTraceStats.Builder casesWithSpans(Integer casesWithSpans)

      The number of cases read that had at least one of the agent's spans. Every value in attributes and metrics is computed over these cases.

      Parameters:
      casesWithSpans - The number of cases read that had at least one of the agent's spans. Every value in attributes and metrics is computed over these cases.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attributes

      The values each span attribute took across the cases with spans, up to 20 attributes.

      Parameters:
      attributes - The values each span attribute took across the cases with spans, up to 20 attributes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attributes

      RunTraceStats.Builder attributes(TraceAttributeStats... attributes)

      The values each span attribute took across the cases with spans, up to 20 attributes.

      Parameters:
      attributes - The values each span attribute took across the cases with spans, up to 20 attributes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attributes

      The values each span attribute took across the cases with spans, up to 20 attributes.

      This is a convenience method that creates an instance of the TraceAttributeStats.Builder avoiding the need to create one manually via TraceAttributeStats.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to attributes(List<TraceAttributeStats>).

      Parameters:
      attributes - a consumer that will call methods on TraceAttributeStats.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • metrics

      Per-case metrics, with their statistics across the cases with spans, up to 20 metrics.

      Parameters:
      metrics - Per-case metrics, with their statistics across the cases with spans, up to 20 metrics.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metrics

      Per-case metrics, with their statistics across the cases with spans, up to 20 metrics.

      Parameters:
      metrics - Per-case metrics, with their statistics across the cases with spans, up to 20 metrics.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metrics

      Per-case metrics, with their statistics across the cases with spans, up to 20 metrics.

      This is a convenience method that creates an instance of the TraceMetricStats.Builder avoiding the need to create one manually via TraceMetricStats.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to metrics(List<TraceMetricStats>).

      Parameters:
      metrics - a consumer that will call methods on TraceMetricStats.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • computedAt

      RunTraceStats.Builder computedAt(Instant computedAt)

      The time when the stats were computed.

      Parameters:
      computedAt - The time when the stats were computed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.