Struct SpanCreateMessage
pub struct SpanCreateMessage<'a> {
pub trace_id: TraceId,
pub span_id: SpanId,
pub parent_span_id: Option<SpanId>,
pub name: Cow<'a, str>,
pub start_time_unix_nano: u64,
pub attributes: Cow<'a, [KeyValue<'a>]>,
}
Expand description
Message indicating the creation of a new span.
This message provides all the information needed to create a new span in the trace, including its identity, timing, and initial attributes.
Fields§
§trace_id: TraceId
The trace this span belongs to
span_id: SpanId
The unique identifier for this span
parent_span_id: Option<SpanId>
The parent span ID, if this is a child span
name: Cow<'a, str>
The name of the span
start_time_unix_nano: u64
Timestamp when the span was started
attributes: Cow<'a, [KeyValue<'a>]>
Initial attributes attached to the span
Trait Implementations§
§impl<'a> Clone for SpanCreateMessage<'a>
impl<'a> Clone for SpanCreateMessage<'a>
§fn clone(&self) -> SpanCreateMessage<'a>
fn clone(&self) -> SpanCreateMessage<'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 more§impl<'a> Debug for SpanCreateMessage<'a>
impl<'a> Debug for SpanCreateMessage<'a>
§impl<'de, 'a> Deserialize<'de> for SpanCreateMessage<'a>where
'de: 'a,
impl<'de, 'a> Deserialize<'de> for SpanCreateMessage<'a>where
'de: 'a,
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SpanCreateMessage<'a>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SpanCreateMessage<'a>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl<'a> Serialize for SpanCreateMessage<'a>
impl<'a> Serialize for SpanCreateMessage<'a>
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
§impl ToStatic for SpanCreateMessage<'_>
impl ToStatic for SpanCreateMessage<'_>
§type Static = SpanCreateMessage<'static>
type Static = SpanCreateMessage<'static>
The same type but with ’static lifetime and owned data.
Auto Trait Implementations§
impl<'a> Freeze for SpanCreateMessage<'a>
impl<'a> RefUnwindSafe for SpanCreateMessage<'a>
impl<'a> Send for SpanCreateMessage<'a>
impl<'a> Sync for SpanCreateMessage<'a>
impl<'a> Unpin for SpanCreateMessage<'a>
impl<'a> UnwindSafe for SpanCreateMessage<'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