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
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more