pub struct TraceChunk<T: TraceData> {
pub trace_id: [u8; 16],
pub priority: Option<i32>,
pub origin: T::Text,
pub sampling_mechanism: Option<u32>,
pub dropped_trace: bool,
pub attributes: VecMap<T::Text, AttributeValue<T>>,
pub spans: Vec<Span<T>>,
}Expand description
A V1 trace chunk: a group of spans sharing the same trace_id, plus chunk-level metadata.
Fields§
§trace_id: [u8; 16]§priority: Option<i32>§origin: T::Text§sampling_mechanism: Option<u32>§dropped_trace: bool§attributes: VecMap<T::Text, AttributeValue<T>>§spans: Vec<Span<T>>Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for TraceChunk<T>
impl<T> RefUnwindSafe for TraceChunk<T>where
<T as TraceData>::Text: RefUnwindSafe,
VecMap<<T as TraceData>::Text, AttributeValue<T>>: RefUnwindSafe,
Vec<Span<T>>: RefUnwindSafe,
impl<T> Send for TraceChunk<T>
impl<T> Sync for TraceChunk<T>
impl<T> Unpin for TraceChunk<T>
impl<T> UnsafeUnpin for TraceChunk<T>where
<T as TraceData>::Text: UnsafeUnpin,
VecMap<<T as TraceData>::Text, AttributeValue<T>>: UnsafeUnpin,
Vec<Span<T>>: UnsafeUnpin,
impl<T> UnwindSafe for TraceChunk<T>where
<T as TraceData>::Text: UnwindSafe,
VecMap<<T as TraceData>::Text, AttributeValue<T>>: UnwindSafe,
Vec<Span<T>>: UnwindSafe,
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