Struct aws_sdk_xray::types::builders::TraceBuilder
source · #[non_exhaustive]pub struct TraceBuilder { /* private fields */ }
Expand description
A builder for Trace
.
Implementations§
source§impl TraceBuilder
impl TraceBuilder
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 get_id(&self) -> &Option<String>
pub fn get_id(&self) -> &Option<String>
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 get_duration(&self) -> &Option<f64>
pub fn get_duration(&self) -> &Option<f64>
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 get_limit_exceeded(&self) -> &Option<bool>
pub fn get_limit_exceeded(&self) -> &Option<bool>
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.
sourcepub fn get_segments(&self) -> &Option<Vec<Segment>>
pub fn get_segments(&self) -> &Option<Vec<Segment>>
Segment documents for the segments and subsegments that comprise the trace.
Trait Implementations§
source§impl Clone for TraceBuilder
impl Clone for TraceBuilder
source§fn clone(&self) -> TraceBuilder
fn clone(&self) -> TraceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TraceBuilder
impl Debug for TraceBuilder
source§impl Default for TraceBuilder
impl Default for TraceBuilder
source§fn default() -> TraceBuilder
fn default() -> TraceBuilder
source§impl PartialEq for TraceBuilder
impl PartialEq for TraceBuilder
source§fn eq(&self, other: &TraceBuilder) -> bool
fn eq(&self, other: &TraceBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.