Interface AffectedSession.Builder

  • Method Details

    • sessionId

      AffectedSession.Builder sessionId(String sessionId)

      The unique identifier of the affected session.

      Parameters:
      sessionId - The unique identifier of the affected session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • explanation

      AffectedSession.Builder explanation(String explanation)

      An explanation of how the failure manifested in this session.

      Parameters:
      explanation - An explanation of how the failure manifested in this session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fixType

      AffectedSession.Builder fixType(String fixType)

      The type of fix recommended for this failure.

      Parameters:
      fixType - The type of fix recommended for this failure.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • recommendation

      AffectedSession.Builder recommendation(String recommendation)

      The specific fix recommendation for this session.

      Parameters:
      recommendation - The specific fix recommendation for this session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • failureSpans

      The list of spans where failures were detected in this session.

      Parameters:
      failureSpans - The list of spans where failures were detected in this session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • failureSpans

      AffectedSession.Builder failureSpans(FailureSpanDetail... failureSpans)

      The list of spans where failures were detected in this session.

      Parameters:
      failureSpans - The list of spans where failures were detected in this session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • failureSpans

      The list of spans where failures were detected in this session.

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

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

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