pub struct NodeAnalytics {
pub node_id: NodeId,
pub node_name: String,
pub node_type: String,
pub execution_count: u64,
pub success_count: u64,
pub failure_count: u64,
pub avg_duration_ms: f64,
pub max_duration_ms: u64,
pub total_duration_ms: u64,
pub time_percentage: f64,
pub is_bottleneck: bool,
}Expand description
Node-level analytics for identifying bottlenecks
Fields§
§node_id: NodeIdNode identifier
node_name: StringNode name
node_type: StringNode type (e.g., “LLM”, “Retriever”)
execution_count: u64Number of times this node executed
success_count: u64Number of successful executions
failure_count: u64Number of failed executions
avg_duration_ms: f64Average execution duration in milliseconds
max_duration_ms: u64Maximum execution duration in milliseconds
total_duration_ms: u64Total duration across all executions
time_percentage: f64Percentage of total workflow time spent in this node
is_bottleneck: boolIs this a bottleneck (slowest node)?
Trait Implementations§
Source§impl Clone for NodeAnalytics
impl Clone for NodeAnalytics
Source§fn clone(&self) -> NodeAnalytics
fn clone(&self) -> NodeAnalytics
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 NodeAnalytics
impl Debug for NodeAnalytics
Source§impl<'de> Deserialize<'de> for NodeAnalytics
impl<'de> Deserialize<'de> for NodeAnalytics
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for NodeAnalytics
impl RefUnwindSafe for NodeAnalytics
impl Send for NodeAnalytics
impl Sync for NodeAnalytics
impl Unpin for NodeAnalytics
impl UnwindSafe for NodeAnalytics
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