Enum devtools_core::Event
source · 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
Fields
A new event was emitted. This usually corresponds to a log event.
NewSpan
Fields
A new span was created.
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 !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