pub struct SpanEvent {
pub timestamp: Timestamp,
pub trace: TraceContext,
pub name: ActionName,
pub attributes: Map<String, Value>,
pub diagnostic: Option<Diagnostic>,
}Expand description
Event attached to a span timeline without creating a child span.
Fields§
§timestamp: TimestampUTC event timestamp.
trace: TraceContextTrace/span correlation for the event.
name: ActionNameStable event name.
attributes: Map<String, Value>Structured event attributes.
diagnostic: Option<Diagnostic>Optional diagnostic attached to the event.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SpanEvent
impl<'de> Deserialize<'de> for SpanEvent
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
impl StructuralPartialEq for SpanEvent
Auto Trait Implementations§
impl Freeze for SpanEvent
impl RefUnwindSafe for SpanEvent
impl Send for SpanEvent
impl Sync for SpanEvent
impl Unpin for SpanEvent
impl UnsafeUnpin for SpanEvent
impl UnwindSafe for SpanEvent
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