Enum mnemos_trace_proto::TraceEvent
source · pub enum TraceEvent<'a> {
Heartbeat(Option<SerializeLevel>),
RegisterMeta {
id: MetaId,
meta: SerializeMetadata<'a>,
},
Event {
parent: Option<SerializeId>,
fields: SerializeRecordFields<'a>,
meta: MetaId,
},
NewSpan {
id: SerializeId,
meta: MetaId,
parent: Option<SerializeId>,
is_root: bool,
fields: SerializeSpanFields<'a>,
},
Enter(SerializeId),
Exit(SerializeId),
CloneSpan(SerializeId),
DropSpan(SerializeId),
Discarded {
new_spans: usize,
span_activity: usize,
events: usize,
metas: usize,
},
}
Variants§
Heartbeat(Option<SerializeLevel>)
Sent by the target periodically when not actively tracing, to indicate
liveness, or to ack a HostRequest::SetMaxLevel
.
RegisterMeta
Event
NewSpan
Enter(SerializeId)
Exit(SerializeId)
CloneSpan(SerializeId)
DropSpan(SerializeId)
Discarded
The target put some data on the ground. Probably because a buffer was full.
Trait Implementations§
source§impl<'a> Debug for TraceEvent<'a>
impl<'a> Debug for TraceEvent<'a>
source§impl<'de: 'a, 'a> Deserialize<'de> for TraceEvent<'a>
impl<'de: 'a, 'a> Deserialize<'de> for TraceEvent<'a>
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
Auto Trait Implementations§
impl<'a> Freeze for TraceEvent<'a>
impl<'a> !RefUnwindSafe for TraceEvent<'a>
impl<'a> Send for TraceEvent<'a>where
'a: 'static,
impl<'a> !Sync for TraceEvent<'a>
impl<'a> Unpin for TraceEvent<'a>
impl<'a> !UnwindSafe for TraceEvent<'a>
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