Struct opentelemetry::trace::Event
source · pub struct Event {
pub name: Cow<'static, str>,
pub timestamp: SystemTime,
pub attributes: Vec<KeyValue>,
pub dropped_attributes_count: u32,
}
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§
source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
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
source§impl PartialEq for Event
impl PartialEq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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