public static interface Trace.Builder extends SdkPojo, CopyableBuilder<Trace.Builder,Trace>
| Modifier and Type | Method and Description |
|---|---|
Trace.Builder |
duration(Double duration)
The length of time in seconds between the start time of the root segment and the end time of the last segment
that completed.
|
Trace.Builder |
id(String id)
The unique identifier for the request that generated the trace's segments and subsegments.
|
Trace.Builder |
limitExceeded(Boolean limitExceeded)
LimitExceeded is set to true when the trace has exceeded the
Trace document size limit. |
Trace.Builder |
segments(Collection<Segment> segments)
Segment documents for the segments and subsegments that comprise the trace.
|
Trace.Builder |
segments(Consumer<Segment.Builder>... segments)
Segment documents for the segments and subsegments that comprise the trace.
|
Trace.Builder |
segments(Segment... segments)
Segment documents for the segments and subsegments that comprise the trace.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildTrace.Builder id(String id)
The unique identifier for the request that generated the trace's segments and subsegments.
id - The unique identifier for the request that generated the trace's segments and subsegments.Trace.Builder duration(Double duration)
The length of time in seconds between the start time of the root segment and the end time of the last segment that completed.
duration - The length of time in seconds between the start time of the root segment and the end time of the last
segment that completed.Trace.Builder limitExceeded(Boolean limitExceeded)
LimitExceeded is set to true when the trace has exceeded the Trace document size limit. For more
information about this limit and other X-Ray limits and quotas, see Amazon Web Services X-Ray endpoints and
quotas.
limitExceeded - LimitExceeded is set to true when the trace has exceeded the Trace document size limit.
For more information about this limit and other X-Ray limits and quotas, see Amazon Web Services X-Ray endpoints and
quotas.Trace.Builder segments(Collection<Segment> segments)
Segment documents for the segments and subsegments that comprise the trace.
segments - Segment documents for the segments and subsegments that comprise the trace.Trace.Builder segments(Segment... segments)
Segment documents for the segments and subsegments that comprise the trace.
segments - Segment documents for the segments and subsegments that comprise the trace.Trace.Builder segments(Consumer<Segment.Builder>... segments)
Segment documents for the segments and subsegments that comprise the trace.
This is a convenience method that creates an instance of theSegment.Builder avoiding the need to create one manually
via Segment.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #segments(List.
segments - a consumer that will call methods on
Segment.Builder#segments(java.util.Collection) Copyright © 2023. All rights reserved.