pub struct TracingHook;Expand description
An ObservabilityHook that emits structured tracing events.
Always returns HookAction::Continue — observes but never controls.
§Span levels
| Event | Level |
|---|---|
| LoopIteration, PreLlmCall, PostLlmCall, PreToolExecution, PostToolExecution | DEBUG |
| ContextCompaction, SessionStart, SessionEnd | INFO |
§Example
use neuron_runtime::TracingHook;
let hook = TracingHook::new();
// Pass to AgentLoop::builder(...).hook(hook).build()Implementations§
Source§impl TracingHook
impl TracingHook
Trait Implementations§
Source§impl Default for TracingHook
impl Default for TracingHook
Source§impl ObservabilityHook for TracingHook
impl ObservabilityHook for TracingHook
Auto Trait Implementations§
impl Freeze for TracingHook
impl RefUnwindSafe for TracingHook
impl Send for TracingHook
impl Sync for TracingHook
impl Unpin for TracingHook
impl UnsafeUnpin for TracingHook
impl UnwindSafe for TracingHook
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