pub struct RequestLogger;Expand description
Tracing-based observation middleware: emits an INFO event at every interception point and passes everything through unchanged.
Payloads are deliberately not logged — counts and ids only. Logging full model or tool payloads is a data-leak footgun; compose a redaction layer first if you need them.
Implementations§
Source§impl RequestLogger
impl RequestLogger
Trait Implementations§
Source§impl Debug for RequestLogger
impl Debug for RequestLogger
Source§impl Default for RequestLogger
impl Default for RequestLogger
Source§fn default() -> RequestLogger
fn default() -> RequestLogger
Returns the “default value” for a type. Read more
Source§impl Middleware for RequestLogger
impl Middleware for RequestLogger
Source§fn before_node<'life0, 'life1, 'async_trait>(
&'life0 self,
call: &'life1 mut NodeCall,
) -> Pin<Box<dyn Future<Output = Decision<NodeOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn before_node<'life0, 'life1, 'async_trait>(
&'life0 self,
call: &'life1 mut NodeCall,
) -> Pin<Box<dyn Future<Output = Decision<NodeOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Node run, inbound (registration order).
Source§fn after_node<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
call: &'life1 NodeCall,
output: &'life2 mut NodeOutput,
) -> Pin<Box<dyn Future<Output = Decision<NodeOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn after_node<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
call: &'life1 NodeCall,
output: &'life2 mut NodeOutput,
) -> Pin<Box<dyn Future<Output = Decision<NodeOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Node run, outbound (reverse registration order). Success path only.
Source§fn before_model<'life0, 'life1, 'async_trait>(
&'life0 self,
call: &'life1 mut ModelCall,
) -> Pin<Box<dyn Future<Output = Decision<ChatResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn before_model<'life0, 'life1, 'async_trait>(
&'life0 self,
call: &'life1 mut ModelCall,
) -> Pin<Box<dyn Future<Output = Decision<ChatResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Model call, inbound (registration order).
Source§fn after_model<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
call: &'life1 ModelCall,
response: &'life2 mut ChatResponse,
) -> Pin<Box<dyn Future<Output = Decision<ChatResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn after_model<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
call: &'life1 ModelCall,
response: &'life2 mut ChatResponse,
) -> Pin<Box<dyn Future<Output = Decision<ChatResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Model call, outbound (reverse registration order). Success path only.
Source§fn before_tool<'life0, 'life1, 'async_trait>(
&'life0 self,
call: &'life1 mut ToolInvocation,
) -> Pin<Box<dyn Future<Output = Decision<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn before_tool<'life0, 'life1, 'async_trait>(
&'life0 self,
call: &'life1 mut ToolInvocation,
) -> Pin<Box<dyn Future<Output = Decision<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Tool call, inbound (registration order).
Source§fn after_tool<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
call: &'life1 ToolInvocation,
result: &'life2 mut Value,
) -> Pin<Box<dyn Future<Output = Decision<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn after_tool<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
call: &'life1 ToolInvocation,
result: &'life2 mut Value,
) -> Pin<Box<dyn Future<Output = Decision<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Tool call, outbound (reverse registration order). Success path only.
Auto Trait Implementations§
impl Freeze for RequestLogger
impl RefUnwindSafe for RequestLogger
impl Send for RequestLogger
impl Sync for RequestLogger
impl Unpin for RequestLogger
impl UnsafeUnpin for RequestLogger
impl UnwindSafe for RequestLogger
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