Interface Span.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Span.Builder,,Span> SdkBuilder<Span.Builder,,Span> SdkPojo
- Enclosing class:
Span
@Mutable
@NotThreadSafe
public static interface Span.Builder
extends SdkPojo, CopyableBuilder<Span.Builder,Span>
-
Method Summary
Modifier and TypeMethodDescriptionassistantId(String assistantId) UUID of the Connect AI Assistant resourcedefault Span.Builderattributes(Consumer<SpanAttributes.Builder> attributes) Span-specific contextual attributesattributes(SpanAttributes attributes) Span-specific contextual attributesendTimestamp(Instant endTimestamp) Operation end time in milliseconds since epochoriginRequestId(String originRequestId) The origin request identifier for end-to-end tracing.parentSpanId(String parentSpanId) Parent span identifier for hierarchy.The service request ID that initiated the operationUUID of the Connect AI Session resourceUnique span identifierService-defined operation nameOperation relationship typeOperation relationship typestartTimestamp(Instant startTimestamp) Operation start time in milliseconds since epochSpan completion statusstatus(SpanStatus status) Span completion statusMethods 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
-
spanId
Unique span identifier
- Parameters:
spanId- Unique span identifier- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assistantId
UUID of the Connect AI Assistant resource
- Parameters:
assistantId- UUID of the Connect AI Assistant resource- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionId
UUID of the Connect AI Session resource
- Parameters:
sessionId- UUID of the Connect AI Session resource- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parentSpanId
Parent span identifier for hierarchy. Null for root spans.
- Parameters:
parentSpanId- Parent span identifier for hierarchy. Null for root spans.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spanName
Service-defined operation name
- Parameters:
spanName- Service-defined operation name- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spanType
Operation relationship type
- Parameters:
spanType- Operation relationship type- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
spanType
Operation relationship type
- Parameters:
spanType- Operation relationship type- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
startTimestamp
Operation start time in milliseconds since epoch
- Parameters:
startTimestamp- Operation start time in milliseconds since epoch- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endTimestamp
Operation end time in milliseconds since epoch
- Parameters:
endTimestamp- Operation end time in milliseconds since epoch- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
Span completion status
- Parameters:
status- Span completion status- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
Span completion status
- Parameters:
status- Span completion status- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
requestId
The service request ID that initiated the operation
- Parameters:
requestId- The service request ID that initiated the operation- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
originRequestId
The origin request identifier for end-to-end tracing.
- Parameters:
originRequestId- The origin request identifier for end-to-end tracing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributes
Span-specific contextual attributes
- Parameters:
attributes- Span-specific contextual attributes- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributes
Span-specific contextual attributes
This is a convenience method that creates an instance of theSpanAttributes.Builderavoiding the need to create one manually viaSpanAttributes.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toattributes(SpanAttributes).- Parameters:
attributes- a consumer that will call methods onSpanAttributes.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-