Interface SpanContext.Builder

  • Method Details

    • sessionId

      SpanContext.Builder sessionId(String sessionId)

      The unique identifier of the session containing this span. Sessions represent complete conversation flows and are detected using configurable SessionTimeoutMinutes (default 15 minutes).

      Parameters:
      sessionId - The unique identifier of the session containing this span. Sessions represent complete conversation flows and are detected using configurable SessionTimeoutMinutes (default 15 minutes).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • traceId

      SpanContext.Builder traceId(String traceId)

      The unique identifier of the trace containing this span. Traces represent individual request-response interactions within a session and group related spans together.

      Parameters:
      traceId - The unique identifier of the trace containing this span. Traces represent individual request-response interactions within a session and group related spans together.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • spanId

      SpanContext.Builder spanId(String spanId)

      The unique identifier of the specific span being referenced. Spans represent individual operations like tool calls, model invocations, or other discrete actions within the agent's execution.

      Parameters:
      spanId - The unique identifier of the specific span being referenced. Spans represent individual operations like tool calls, model invocations, or other discrete actions within the agent's execution.
      Returns:
      Returns a reference to this object so that method calls can be chained together.