pub struct WideEventRecord {
pub subsystem: &'static str,
pub duration: Duration,
pub fields: HashMap<&'static str, Value>,
pub trace_id: Option<String>,
pub span_id: Option<String>,
}Expand description
A finalized wide event record ready for formatting.
Contains the accumulated fields and timing data. The timestamp
is formatted separately by the layer’s FormatTime implementation.
Fields§
§subsystem: &'static strThe subsystem label (e.g. "http", "grpc").
duration: DurationWall-clock duration from event creation to emit.
fields: HashMap<&'static str, Value>Accumulated key-value fields.
trace_id: Option<String>OpenTelemetry trace ID, if the opentelemetry feature is enabled.
span_id: Option<String>OpenTelemetry span ID, if the opentelemetry feature is enabled.
Auto Trait Implementations§
impl Freeze for WideEventRecord
impl RefUnwindSafe for WideEventRecord
impl Send for WideEventRecord
impl Sync for WideEventRecord
impl Unpin for WideEventRecord
impl UnsafeUnpin for WideEventRecord
impl UnwindSafe for WideEventRecord
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