pub struct NodeSpan {
pub node_id: String,
pub started_ts: Option<DateTime<Utc>>,
pub finished_ts: Option<DateTime<Utc>>,
pub duration_ms: Option<u64>,
pub outcome: String,
pub cache_tier: Option<String>,
pub error: Option<String>,
pub effectful: bool,
}Expand description
One execution span of a node, in event order. A node appears once per execution (re-runs and stream chunks produce separate spans).
Fields§
§node_id: StringGraph node this span belongs to.
started_ts: Option<DateTime<Utc>>Envelope timestamp of the opening event.
finished_ts: Option<DateTime<Utc>>Envelope timestamp of the closing event.
duration_ms: Option<u64>Wall time between the two envelope timestamps.
outcome: Stringcompleted | failed | cache_hit | running.
cache_tier: Option<String>Cache tier that served a hit (memory, local, …).
error: Option<String>Failure message when outcome is failed.
effectful: boolThe node was a step (from NodeStarted); defaults for spans
reconstructed from logs that predate the field.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeSpan
impl<'de> Deserialize<'de> for NodeSpan
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
impl StructuralPartialEq for NodeSpan
Auto Trait Implementations§
impl Freeze for NodeSpan
impl RefUnwindSafe for NodeSpan
impl Send for NodeSpan
impl Sync for NodeSpan
impl Unpin for NodeSpan
impl UnsafeUnpin for NodeSpan
impl UnwindSafe for NodeSpan
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