pub struct Event<Visitor, SpanId, TraceId> {
pub trace_id: TraceId,
pub parent_id: Option<SpanId>,
pub initialized_at: SystemTime,
pub meta: &'static Metadata<'static>,
pub service_name: &'static str,
pub values: Visitor,
}
Expand description
An Event
holds ready-to-publish information derived from a tracing::Event
.
Fields§
§trace_id: TraceId
TraceId
identifying the trace to which this event belongs
parent_id: Option<SpanId>
optional parent span id
initialized_at: SystemTime
UTC time at which this event was initialized
meta: &'static Metadata<'static>
tracing::Metadata
for this event
service_name: &'static str
name of the service on which this event occured
values: Visitor
values accumulated by visiting the fields of the tracing::Event
this event was derived from
Trait Implementations§
Auto Trait Implementations§
impl<Visitor, SpanId, TraceId> Freeze for Event<Visitor, SpanId, TraceId>
impl<Visitor, SpanId, TraceId> !RefUnwindSafe for Event<Visitor, SpanId, TraceId>
impl<Visitor, SpanId, TraceId> Send for Event<Visitor, SpanId, TraceId>
impl<Visitor, SpanId, TraceId> Sync for Event<Visitor, SpanId, TraceId>
impl<Visitor, SpanId, TraceId> Unpin for Event<Visitor, SpanId, TraceId>
impl<Visitor, SpanId, TraceId> !UnwindSafe for Event<Visitor, SpanId, TraceId>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more