pub struct RequestLogContext {
pub invocation_id: String,
pub source: Source,
pub mcp_tool: Option<String>,
}Expand description
The per-invocation context every record is stamped with.
Held once per process in [GLOBAL] (CLI/daemon) and overridden per task in
CTX (the multiplexed MCP server), so HTTP records can find their parent
invocation without threading state through every call site.
Fields§
§invocation_id: StringShared id linking an invocation to the HTTP it spawned.
source: SourceWhat drove the run.
mcp_tool: Option<String>MCP tool name when source = mcp.
Implementations§
Trait Implementations§
Source§impl Clone for RequestLogContext
impl Clone for RequestLogContext
Source§fn clone(&self) -> RequestLogContext
fn clone(&self) -> RequestLogContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RequestLogContext
impl Debug for RequestLogContext
Auto Trait Implementations§
impl Freeze for RequestLogContext
impl RefUnwindSafe for RequestLogContext
impl Send for RequestLogContext
impl Sync for RequestLogContext
impl Unpin for RequestLogContext
impl UnsafeUnpin for RequestLogContext
impl UnwindSafe for RequestLogContext
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