pub struct Link { /* private fields */ }
Available on crate feature
trace
only.Expand description
During the Span
creation user MUST have the ability to record links to other Span
s. Linked
Span
s can be from the same or a different trace.
Implementations§
Source§impl Link
impl Link
Sourcepub fn new(span_context: SpanContext, attributes: Vec<KeyValue>) -> Self
pub fn new(span_context: SpanContext, attributes: Vec<KeyValue>) -> Self
Create a new link
Sourcepub fn span_context(&self) -> &SpanContext
pub fn span_context(&self) -> &SpanContext
The span context of the linked span
Sourcepub fn attributes(&self) -> &Vec<KeyValue>
pub fn attributes(&self) -> &Vec<KeyValue>
Attributes of the span link
Sourcepub fn dropped_attributes_count(&self) -> u32
pub fn dropped_attributes_count(&self) -> u32
Dropped attributes count
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Link
impl<'de> Deserialize<'de> for Link
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
impl StructuralPartialEq for Link
Auto Trait Implementations§
impl Freeze for Link
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnwindSafe for Link
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Available on crate feature
trace
only.Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Available on crate feature
trace
only.