pub struct TraceParent {
pub trace_id: String,
pub span_id: String,
}Fields§
§trace_id: String32 lowercase hex chars (128-bit), never all-zero.
span_id: String16 lowercase hex chars (64-bit) — the proxy’s span id.
Implementations§
Source§impl TraceParent
impl TraceParent
Sourcepub fn incoming_or_new(header: Option<&str>) -> Self
pub fn incoming_or_new(header: Option<&str>) -> Self
Continue an inbound traceparent (reuse trace-id, new proxy span-id) or
mint a fresh one when the header is absent or malformed.
Sourcepub fn header_value(&self) -> String
pub fn header_value(&self) -> String
The traceparent header value. 01 = sampled.
Trait Implementations§
Source§impl Clone for TraceParent
impl Clone for TraceParent
Source§impl Debug for TraceParent
impl Debug for TraceParent
impl Eq for TraceParent
Source§impl PartialEq for TraceParent
impl PartialEq for TraceParent
impl StructuralPartialEq for TraceParent
Auto Trait Implementations§
impl Freeze for TraceParent
impl RefUnwindSafe for TraceParent
impl Send for TraceParent
impl Sync for TraceParent
impl Unpin for TraceParent
impl UnsafeUnpin for TraceParent
impl UnwindSafe for TraceParent
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.