pub struct TraceEvent {
pub seq: u64,
pub time_ms: u64,
pub source: String,
pub target: String,
pub level: Level,
pub name: String,
pub fields: BTreeMap<String, FieldValue>,
}Expand description
One captured trace event — the same shape as a production log line.
Fields§
§seq: u64Global monotonic sequence number across all event names. Reset per seed.
time_ms: u64Simulation time in milliseconds when the event was captured.
source: StringOriginating actor: the ip recorded on the nearest enclosing process
or workload span, or "sim" for runner-injected fault events.
target: StringThe tracing target (defaults to the emitting module path).
level: LevelEvent severity level.
name: StringEvent name: the tracing message, e.g. "leader_elected".
fields: BTreeMap<String, FieldValue>Structured fields recorded on the event.
Implementations§
Trait Implementations§
Source§impl Clone for TraceEvent
impl Clone for TraceEvent
Source§fn clone(&self) -> TraceEvent
fn clone(&self) -> TraceEvent
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 moreAuto Trait Implementations§
impl Freeze for TraceEvent
impl RefUnwindSafe for TraceEvent
impl Send for TraceEvent
impl Sync for TraceEvent
impl Unpin for TraceEvent
impl UnsafeUnpin for TraceEvent
impl UnwindSafe for TraceEvent
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