Interface TraceAttributeStats.Builder

  • Method Details

    • name

      The span attribute these values are for.

      Parameters:
      name - The span attribute these values are for.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • name

      The span attribute these values are for.

      Parameters:
      name - The span attribute these values are for.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • version

      The version of the attribute's definition. Two runs' stats are comparable only at equal versions.

      Parameters:
      version - The version of the attribute's definition. Two runs' stats are comparable only at equal versions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • distinct

      The number of distinct values across the cases.

      Parameters:
      distinct - The number of distinct values across the cases.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • valuesHash

      TraceAttributeStats.Builder valuesHash(String valuesHash)

      A SHA-256 hash of the sorted distinct values, one per line, in the form sha256:<64 hex digits>. Equal sets of values have equal hashes, even when values is truncated.

      Parameters:
      valuesHash - A SHA-256 hash of the sorted distinct values, one per line, in the form sha256:<64 hex digits>. Equal sets of values have equal hashes, even when values is truncated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • values

      The most common values, up to 10, ordered by number of cases (most first) and then by value.

      Parameters:
      values - The most common values, up to 10, ordered by number of cases (most first) and then by value.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • values

      The most common values, up to 10, ordered by number of cases (most first) and then by value.

      Parameters:
      values - The most common values, up to 10, ordered by number of cases (most first) and then by value.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • values

      The most common values, up to 10, ordered by number of cases (most first) and then by value.

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

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

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