pub struct Causality {
pub trace_id: Uuid,
pub span_id: u64,
pub parent_span_id: Option<u64>,
pub parent_event_ids: Vec<EventId>,
pub root_event_id: EventId,
}Expand description
W3C Trace Context compatible distributed tracing.
Provides full causality tracking for events across distributed systems. Compatible with OpenTelemetry and other distributed tracing systems.
Fields§
§trace_id: UuidStable trace ID across request lifecycle (W3C compatible)
span_id: u64Current operation span ID
parent_span_id: Option<u64>Parent span (if not root)
parent_event_ids: Vec<EventId>Parent event IDs for causality fan-in (multiple parents)
root_event_id: EventIdRoot event of this trace tree
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Causality
impl<'de> Deserialize<'de> for Causality
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Causality
impl StructuralPartialEq for Causality
Auto Trait Implementations§
impl Freeze for Causality
impl RefUnwindSafe for Causality
impl Send for Causality
impl Sync for Causality
impl Unpin for Causality
impl UnwindSafe for Causality
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.