pub struct LogCtx {
pub run_id: String,
pub agent_id: String,
pub agent_path: String,
pub comp: Comp,
pub pid: u32,
pub trace_id: Option<String>,
}Expand description
The correlation context stamped on every line. Children inherit run_id
and trace_id and extend agent_path (the cheap subtree-query superpower:
an agent_path prefix selects a subtree with no backend join).
Fields§
§run_id: String§agent_id: String§agent_path: String§comp: Comp§pid: u32§trace_id: Option<String>Trait Implementations§
Auto Trait Implementations§
impl Freeze for LogCtx
impl RefUnwindSafe for LogCtx
impl Send for LogCtx
impl Sync for LogCtx
impl Unpin for LogCtx
impl UnsafeUnpin for LogCtx
impl UnwindSafe for LogCtx
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