Struct aws_sdk_xray::model::trace::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for Trace
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The unique identifier for the request that generated the trace's segments and subsegments.
sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The unique identifier for the request that generated the trace's segments and subsegments.
sourcepub fn duration(self, input: f64) -> Self
pub fn duration(self, input: f64) -> Self
The length of time in seconds between the start time of the root segment and the end time of the last segment that completed.
sourcepub fn set_duration(self, input: Option<f64>) -> Self
pub fn set_duration(self, input: Option<f64>) -> Self
The length of time in seconds between the start time of the root segment and the end time of the last segment that completed.
sourcepub fn limit_exceeded(self, input: bool) -> Self
pub fn limit_exceeded(self, input: bool) -> Self
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.
sourcepub fn set_limit_exceeded(self, input: Option<bool>) -> Self
pub fn set_limit_exceeded(self, input: Option<bool>) -> Self
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.
sourcepub fn segments(self, input: Segment) -> Self
pub fn segments(self, input: Segment) -> Self
Appends an item to segments
.
To override the contents of this collection use set_segments
.
Segment documents for the segments and subsegments that comprise the trace.
sourcepub fn set_segments(self, input: Option<Vec<Segment>>) -> Self
pub fn set_segments(self, input: Option<Vec<Segment>>) -> Self
Segment documents for the segments and subsegments that comprise the trace.