pub enum TracingMessage<'a> {
CreateSpan(SpanCreateMessage<'a>),
EnterSpan(SpanEnterMessage),
ExitSpan(SpanExitMessage),
CloseSpan(SpanCloseMessage),
AddEvent(SpanAddEventMessage<'a>),
AddLink(SpanAddLinkMessage),
SetAttribute(SpanSetAttributeMessage<'a>),
}Expand description
Messages related to distributed tracing operations.
This enum encompasses all the different types of tracing messages that can be generated during span lifecycle management and tracing operations.
Variants§
CreateSpan(SpanCreateMessage<'a>)
A new span has been created
EnterSpan(SpanEnterMessage)
A span has been entered (made current)
ExitSpan(SpanExitMessage)
A span has been exited (no longer current)
CloseSpan(SpanCloseMessage)
A span has been closed (completed)
AddEvent(SpanAddEventMessage<'a>)
An event has been added to a span
AddLink(SpanAddLinkMessage)
A link has been added to a span
SetAttribute(SpanSetAttributeMessage<'a>)
An attribute has been set on a span
Trait Implementations§
Source§impl<'a> Clone for TracingMessage<'a>
impl<'a> Clone for TracingMessage<'a>
Source§fn clone(&self) -> TracingMessage<'a>
fn clone(&self) -> TracingMessage<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for TracingMessage<'a>
impl<'a> Debug for TracingMessage<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for TracingMessage<'a>
impl<'de: 'a, 'a> Deserialize<'de> for TracingMessage<'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
Source§impl<'a> Serialize for TracingMessage<'a>
impl<'a> Serialize for TracingMessage<'a>
Auto Trait Implementations§
impl<'a> Freeze for TracingMessage<'a>
impl<'a> RefUnwindSafe for TracingMessage<'a>
impl<'a> Send for TracingMessage<'a>
impl<'a> Sync for TracingMessage<'a>
impl<'a> Unpin for TracingMessage<'a>
impl<'a> UnwindSafe for TracingMessage<'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