pub struct TraceContext {
pub trace_id: Uuid,
pub parent_run_id: Option<Uuid>,
pub dotted_order: Option<String>,
pub thread_id: Option<String>,
pub session_name: Option<String>,
}Expand description
Context for trace propagation
Fields§
§trace_id: Uuid§parent_run_id: Option<Uuid>§dotted_order: Option<String>§thread_id: Option<String>§session_name: Option<String>Implementations§
Source§impl TraceContext
impl TraceContext
pub fn new(trace_id: Uuid) -> Self
pub fn with_parent(self, parent_run_id: Uuid) -> Self
pub fn with_dotted_order(self, dotted_order: String) -> Self
pub fn with_thread_id(self, thread_id: String) -> Self
pub fn with_session_name(self, session_name: String) -> Self
Trait Implementations§
Source§impl Clone for TraceContext
impl Clone for TraceContext
Source§fn clone(&self) -> TraceContext
fn clone(&self) -> TraceContext
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 moreAuto Trait Implementations§
impl Freeze for TraceContext
impl RefUnwindSafe for TraceContext
impl Send for TraceContext
impl Sync for TraceContext
impl Unpin for TraceContext
impl UnwindSafe for TraceContext
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