pub struct ChunkSpanView<'a, T: TraceData> {
pub span: &'a Span<T>,
pub chunk: &'a TraceChunk<T>,
}Expand description
Wraps a V1 span together with its enclosing chunk.
TraceChunk.attributes holds values common to every span in the chunk (e.g. peer tags), and
TraceChunk.origin holds the _dd.origin value for the whole chunk. get_meta/get_metrics
fall back to these chunk-level values whenever the span doesn’t have its own value for a
given key.
Fields§
§span: &'a Span<T>§chunk: &'a TraceChunk<T>Trait Implementations§
Source§impl<'a, T: TraceData> StatSpan<'a> for ChunkSpanView<'a, T>
impl<'a, T: TraceData> StatSpan<'a> for ChunkSpanView<'a, T>
Source§fn is_trace_root(&'a self) -> bool
fn is_trace_root(&'a self) -> bool
Returns true if the span is a trace root
Source§fn is_measured(&'a self) -> bool
fn is_measured(&'a self) -> bool
Returns true if the span is measured
Source§fn is_partial_snapshot(&'a self) -> bool
fn is_partial_snapshot(&'a self) -> bool
Returns true if the span is a partial snapshot
Source§fn has_top_level(&'a self) -> bool
fn has_top_level(&'a self) -> bool
Returns true if the span has a top level key set
Auto Trait Implementations§
impl<'a, T> Freeze for ChunkSpanView<'a, T>
impl<'a, T> RefUnwindSafe for ChunkSpanView<'a, T>
impl<'a, T> Send for ChunkSpanView<'a, T>
impl<'a, T> Sync for ChunkSpanView<'a, T>
impl<'a, T> Unpin for ChunkSpanView<'a, T>
impl<'a, T> UnsafeUnpin for ChunkSpanView<'a, T>
impl<'a, T> UnwindSafe for ChunkSpanView<'a, T>
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