pub struct TraceCorrelation {
pub trace_id: String,
pub span_id: String,
pub parent_span_id: Option<String>,
}Expand description
Serializable trace identifiers for log/metric correlation.
Distinct from crate::context::TraceContext which is the runtime
tracing context with sampling decisions and W3C conversion methods.
Fields§
§trace_id: String§span_id: String§parent_span_id: Option<String>Trait Implementations§
Source§impl Clone for TraceCorrelation
impl Clone for TraceCorrelation
Source§fn clone(&self) -> TraceCorrelation
fn clone(&self) -> TraceCorrelation
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 TraceCorrelation
impl Debug for TraceCorrelation
Source§impl<'de> Deserialize<'de> for TraceCorrelation
impl<'de> Deserialize<'de> for TraceCorrelation
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
Auto Trait Implementations§
impl Freeze for TraceCorrelation
impl RefUnwindSafe for TraceCorrelation
impl Send for TraceCorrelation
impl Sync for TraceCorrelation
impl Unpin for TraceCorrelation
impl UnsafeUnpin for TraceCorrelation
impl UnwindSafe for TraceCorrelation
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