Struct opentelemetry::trace::Link
source · pub struct Link { /* private fields */ }
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
source§impl PartialEq for Link
impl PartialEq for Link
impl StructuralPartialEq for Link
Auto Trait Implementations§
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