Interface SpanContext.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SpanContext.Builder,,SpanContext> SdkBuilder<SpanContext.Builder,,SpanContext> SdkPojo
- Enclosing class:
SpanContext
@Mutable
@NotThreadSafe
public static interface SpanContext.Builder
extends SdkPojo, CopyableBuilder<SpanContext.Builder,SpanContext>
-
Method Summary
Modifier and TypeMethodDescriptionThe unique identifier of the session containing this span.The unique identifier of the specific span being referenced.The unique identifier of the trace containing this span.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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 configurableSessionTimeoutMinutes(default 15 minutes).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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.
-