pub struct TraceEntry {Show 19 fields
pub id: u64,
pub timestamp: u64,
pub flow_name: String,
pub status: TraceStatus,
pub steps_executed: usize,
pub latency_ms: u64,
pub tokens_input: u64,
pub tokens_output: u64,
pub anchor_checks: usize,
pub anchor_breaches: usize,
pub errors: usize,
pub retries: usize,
pub source_file: String,
pub backend: String,
pub client_key: String,
pub events: Vec<TraceEvent>,
pub replay_of: Option<u64>,
pub annotations: Vec<TraceAnnotation>,
pub correlation_id: Option<String>,
}Expand description
A single execution trace.
Fields§
§id: u64Unique trace ID (sequential).
timestamp: u64Wall-clock timestamp (Unix seconds).
flow_name: StringFlow name that was executed.
status: TraceStatusExecution status.
steps_executed: usizeNumber of steps executed.
latency_ms: u64Total latency in milliseconds.
tokens_input: u64Input tokens used (if known).
tokens_output: u64Output tokens used (if known).
anchor_checks: usizeAnchor checks performed.
anchor_breaches: usizeAnchor breaches detected.
errors: usizeError count.
retries: usizeRetry count.
source_file: StringSource file.
backend: StringBackend used (e.g., “anthropic”).
client_key: StringClient identifier.
events: Vec<TraceEvent>Ordered event log.
replay_of: Option<u64>If this trace is a replay, the ID of the original trace.
annotations: Vec<TraceAnnotation>User-added annotations for debugging and collaboration.
correlation_id: Option<String>Correlation ID for linking related traces.
Trait Implementations§
Source§impl Clone for TraceEntry
impl Clone for TraceEntry
Source§fn clone(&self) -> TraceEntry
fn clone(&self) -> TraceEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TraceEntry
impl Debug for TraceEntry
Auto Trait Implementations§
impl Freeze for TraceEntry
impl RefUnwindSafe for TraceEntry
impl Send for TraceEntry
impl Sync for TraceEntry
impl Unpin for TraceEntry
impl UnsafeUnpin for TraceEntry
impl UnwindSafe for TraceEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.