pub struct OpenTelemetry {
pub trace_id: String,
pub span_id: String,
pub parent_span_id: Option<String>,
}Fields§
§trace_id: String§span_id: String§parent_span_id: Option<String>Implementations§
Source§impl OpenTelemetry
impl OpenTelemetry
Sourcepub fn parent_span_id(&self) -> &str
pub fn parent_span_id(&self) -> &str
Returns the value of parent_span_id, or the default value if parent_span_id is unset.
Trait Implementations§
Source§impl Clone for OpenTelemetry
impl Clone for OpenTelemetry
Source§fn clone(&self) -> OpenTelemetry
fn clone(&self) -> OpenTelemetry
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 Debug for OpenTelemetry
impl Debug for OpenTelemetry
Source§impl Default for OpenTelemetry
impl Default for OpenTelemetry
Source§impl<'de> Deserialize<'de> for OpenTelemetry
impl<'de> Deserialize<'de> for OpenTelemetry
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 Hash for OpenTelemetry
impl Hash for OpenTelemetry
Source§impl Message for OpenTelemetry
impl Message for OpenTelemetry
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl Ord for OpenTelemetry
impl Ord for OpenTelemetry
Source§fn cmp(&self, other: &OpenTelemetry) -> Ordering
fn cmp(&self, other: &OpenTelemetry) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OpenTelemetry
impl PartialEq for OpenTelemetry
Source§impl PartialOrd for OpenTelemetry
impl PartialOrd for OpenTelemetry
Source§impl Serialize for OpenTelemetry
impl Serialize for OpenTelemetry
impl Eq for OpenTelemetry
impl StructuralPartialEq for OpenTelemetry
Auto Trait Implementations§
impl Freeze for OpenTelemetry
impl RefUnwindSafe for OpenTelemetry
impl Send for OpenTelemetry
impl Sync for OpenTelemetry
impl Unpin for OpenTelemetry
impl UnwindSafe for OpenTelemetry
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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