Struct opentelemetry::trace::Event [−][src]
pub struct Event { pub name: Cow<'static, str>, pub timestamp: SystemTime, pub attributes: Vec<KeyValue>, pub dropped_attributes_count: u32, }
This is supported on crate feature
trace
only.Expand description
A Span
has the ability to add events. Events have a time associated
with the moment when they are added to the Span
.
Fields
name: Cow<'static, str>
Event name
timestamp: SystemTime
Event timestamp
attributes: Vec<KeyValue>
Event attributes
dropped_attributes_count: u32
Number of dropped attributes
Implementations
Trait Implementations
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 RefUnwindSafe for Event
impl UnwindSafe for Event
Blanket Implementations
Mutably borrows from an owned value. Read more