pub enum Event {
Metadata(&'static Metadata<'static>),
Event {
at: Instant,
metadata: &'static Metadata<'static>,
message: String,
fields: Vec<Field>,
maybe_parent: Option<Id>,
},
NewSpan {
at: Instant,
id: Id,
metadata: &'static Metadata<'static>,
fields: Vec<Field>,
maybe_parent: Option<Id>,
},
EnterSpan {
at: Instant,
thread_id: u64,
span_id: Id,
},
ExitSpan {
at: Instant,
thread_id: u64,
span_id: Id,
},
CloseSpan {
at: Instant,
span_id: Id,
},
SpanRecorded {
span_id: Id,
fields: Vec<Field>,
},
}
Expand description
Data sent from the Layer
to the Aggregator
This is designed to be as cheap to create as possible so the Layer
impl remains lightweight.
Variants§
Metadata(&'static Metadata<'static>)
The tracing system registered new span or event metadata Metadata is the portion of a data point that remains static.
Event
A new event was emitted. This usually corresponds to a log event.
Fields
NewSpan
A new span was created.
Fields
EnterSpan
A previously created span was entered.
ExitSpan
A previously created and entered span was exited.
CloseSpan
A previously created span has been closed. No new events regarding this particular span will be emitted. NOTE: The span ID that corresponded to this span might be reused!
SpanRecorded
Span recorded a new value.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request