Interface RetrievedTrace.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RetrievedTrace.Builder,
,RetrievedTrace> SdkBuilder<RetrievedTrace.Builder,
,RetrievedTrace> SdkPojo
- Enclosing class:
RetrievedTrace
@Mutable
@NotThreadSafe
public static interface RetrievedTrace.Builder
extends SdkPojo, CopyableBuilder<RetrievedTrace.Builder,RetrievedTrace>
-
Method Summary
Modifier and TypeMethodDescriptionThe length of time in seconds between the start time of the root span and the end time of the last span that completed.The unique identifier for the span.spans
(Collection<Span> spans) Spans that comprise the trace.spans
(Consumer<Span.Builder>... spans) Spans that comprise the trace.Spans that comprise the trace.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
id
The unique identifier for the span.
- Parameters:
id
- The unique identifier for the span.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
duration
The length of time in seconds between the start time of the root span and the end time of the last span that completed.
- Parameters:
duration
- The length of time in seconds between the start time of the root span and the end time of the last span that completed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spans
Spans that comprise the trace.
- Parameters:
spans
- Spans that comprise the trace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spans
Spans that comprise the trace.
- Parameters:
spans
- Spans that comprise the trace.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spans
Spans that comprise the trace.
This is a convenience method that creates an instance of theSpan.Builder
avoiding the need to create one manually viaSpan.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tospans(List<Span>)
.- Parameters:
spans
- a consumer that will call methods onSpan.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-