pub struct TracingFrame {
pub t: u64,
pub level: String,
pub target: String,
pub message: String,
pub fields: Value,
}Expand description
Wire shape for a single tracing event.
Field layout follows JSON-formatter conventions (t / level /
target / message / fields) so jq queries written for
JSON-rendered logs apply to the broadcast stream unchanged.
Fields§
§t: u64Wall-clock timestamp in milliseconds since the Unix epoch.
level: Stringtracing::Level rendered as upper-case (ERROR / WARN /
INFO / DEBUG / TRACE).
target: Stringmetadata.target() — typically the module path that emitted
the event.
message: StringFormatted message field if present, otherwise empty.
fields: ValueRemaining structured fields as {name → JSON value}.
Trait Implementations§
Source§impl Clone for TracingFrame
impl Clone for TracingFrame
Source§fn clone(&self) -> TracingFrame
fn clone(&self) -> TracingFrame
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 TracingFrame
impl Debug for TracingFrame
Source§impl<'de> Deserialize<'de> for TracingFrame
impl<'de> Deserialize<'de> for TracingFrame
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 TracingFrame
impl RefUnwindSafe for TracingFrame
impl Send for TracingFrame
impl Sync for TracingFrame
impl Unpin for TracingFrame
impl UnsafeUnpin for TracingFrame
impl UnwindSafe for TracingFrame
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