pub struct ObservabilityConfig {
pub trace_llm_calls: bool,
pub log_full_prompts: bool,
pub log_full_responses: bool,
pub track_token_usage: bool,
pub trace_memory_access: bool,
pub enable_context_snapshots: bool,
pub capture_reasoning_traces: bool,
pub max_content_length: usize,
pub model_name: Option<String>,
pub cost_per_1m_input: Option<f64>,
pub cost_per_1m_output: Option<f64>,
}Expand description
Observability configuration for the runner
Fields§
§trace_llm_calls: boolEnable LLM call tracing (start/end/failed events)
log_full_prompts: boolLog full prompts (expensive - use for debugging only)
log_full_responses: boolLog full responses (expensive - use for debugging only)
track_token_usage: boolTrack token usage and emit token.usage events
trace_memory_access: boolTrace memory access (recall/store events)
enable_context_snapshots: boolEnable context window snapshots
capture_reasoning_traces: boolEnable reasoning trace capture
max_content_length: usizeMaximum content length for logged prompts/responses
model_name: Option<String>Model name for cost calculation (optional)
cost_per_1m_input: Option<f64>Cost per 1M input tokens (USD) from provider config If set, overrides hardcoded model pricing
cost_per_1m_output: Option<f64>Cost per 1M output tokens (USD) from provider config If set, overrides hardcoded model pricing
Trait Implementations§
Source§impl Clone for ObservabilityConfig
impl Clone for ObservabilityConfig
Source§fn clone(&self) -> ObservabilityConfig
fn clone(&self) -> ObservabilityConfig
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 moreSource§impl Debug for ObservabilityConfig
impl Debug for ObservabilityConfig
Auto Trait Implementations§
impl Freeze for ObservabilityConfig
impl RefUnwindSafe for ObservabilityConfig
impl Send for ObservabilityConfig
impl Sync for ObservabilityConfig
impl Unpin for ObservabilityConfig
impl UnsafeUnpin for ObservabilityConfig
impl UnwindSafe for ObservabilityConfig
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