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
impl StructuralPartialEq for TraceBuilder
Auto Trait Implementations§
impl Freeze for TraceBuilder
impl RefUnwindSafe for TraceBuilder
impl Send for TraceBuilder
impl Sync for TraceBuilder
impl Unpin for TraceBuilder
impl UnwindSafe for TraceBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more