pub struct WireSpan {
pub id: u64,
pub parent_id: Option<u64>,
pub name: String,
pub target: String,
pub level: WireLevel,
pub fields: Vec<(String, WireFieldValue)>,
pub events: Vec<WireEvent>,
pub opened_at_ns: u64,
pub closed_at_ns: Option<u64>,
}Fields§
§id: u64§parent_id: Option<u64>§name: String§target: String§level: WireLevel§fields: Vec<(String, WireFieldValue)>§events: Vec<WireEvent>§opened_at_ns: u64Nanoseconds since the Unix epoch.
closed_at_ns: Option<u64>None if still in flight at snapshot time (currently only closed spans
are streamed, so this is Some in practice).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WireSpan
impl<'de> Deserialize<'de> for WireSpan
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 WireSpan
impl RefUnwindSafe for WireSpan
impl Send for WireSpan
impl Sync for WireSpan
impl Unpin for WireSpan
impl UnsafeUnpin for WireSpan
impl UnwindSafe for WireSpan
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