#[non_exhaustive]pub struct StackTrace {
pub stack_frames: Option<StackFrames>,
pub stack_trace_hash_id: i64,
/* private fields */
}Expand description
A call stack appearing in a trace.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.stack_frames: Option<StackFrames>Stack frames in this stack trace. A maximum of 128 frames are allowed.
stack_trace_hash_id: i64The hash ID is used to conserve network bandwidth for duplicate stack traces within a single trace.
Often multiple spans will have identical stack traces.
The first occurrence of a stack trace should contain both the
stackFrame content and a value in stackTraceHashId.
Subsequent spans within the same request can refer
to that stack trace by only setting stackTraceHashId.
Implementations§
Source§impl StackTrace
impl StackTrace
pub fn new() -> Self
Sourcepub fn set_stack_frames<T>(self, v: T) -> Selfwhere
T: Into<StackFrames>,
pub fn set_stack_frames<T>(self, v: T) -> Selfwhere
T: Into<StackFrames>,
Sets the value of stack_frames.
Sourcepub fn set_or_clear_stack_frames<T>(self, v: Option<T>) -> Selfwhere
T: Into<StackFrames>,
pub fn set_or_clear_stack_frames<T>(self, v: Option<T>) -> Selfwhere
T: Into<StackFrames>,
Sets or clears the value of stack_frames.
Sourcepub fn set_stack_trace_hash_id<T: Into<i64>>(self, v: T) -> Self
pub fn set_stack_trace_hash_id<T: Into<i64>>(self, v: T) -> Self
Sets the value of stack_trace_hash_id.
Trait Implementations§
Source§impl Clone for StackTrace
impl Clone for StackTrace
Source§fn clone(&self) -> StackTrace
fn clone(&self) -> StackTrace
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StackTrace
impl Debug for StackTrace
Source§impl Default for StackTrace
impl Default for StackTrace
Source§fn default() -> StackTrace
fn default() -> StackTrace
Returns the “default value” for a type. Read more
Source§impl PartialEq for StackTrace
impl PartialEq for StackTrace
impl StructuralPartialEq for StackTrace
Auto Trait Implementations§
impl Freeze for StackTrace
impl RefUnwindSafe for StackTrace
impl Send for StackTrace
impl Sync for StackTrace
impl Unpin for StackTrace
impl UnwindSafe for StackTrace
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