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
sourceimpl 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
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more