pub struct TraceSummary {
pub trace_id: String,
pub total_spans: usize,
pub running: usize,
pub errors: usize,
pub total_duration: Option<Duration>,
}Expand description
A summary of an execution trace.
Fields§
§trace_id: StringTrace identifier.
total_spans: usizeTotal number of spans.
running: usizeNumber of spans still running.
errors: usizeNumber of spans that errored.
total_duration: Option<Duration>Total wall-clock duration of the trace.
Implementations§
Source§impl TraceSummary
impl TraceSummary
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Check if all spans have completed (none running).
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Check if the trace had any errors.
Trait Implementations§
Source§impl Clone for TraceSummary
impl Clone for TraceSummary
Source§fn clone(&self) -> TraceSummary
fn clone(&self) -> TraceSummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TraceSummary
impl RefUnwindSafe for TraceSummary
impl Send for TraceSummary
impl Sync for TraceSummary
impl Unpin for TraceSummary
impl UnsafeUnpin for TraceSummary
impl UnwindSafe for TraceSummary
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
Mutably borrows from an owned value. Read more