pub struct SpanLink {
pub trace_id: Annotated<TraceId>,
pub span_id: Annotated<SpanId>,
pub sampled: Annotated<bool>,
pub attributes: Annotated<Object<Value>>,
pub other: Object<Value>,
}
Expand description
A link from a span to another span.
Fields§
§trace_id: Annotated<TraceId>
The trace id of the linked span
span_id: Annotated<SpanId>
The span id of the linked span
sampled: Annotated<bool>
Whether the linked span was positively/negatively sampled
attributes: Annotated<Object<Value>>
Span link attributes, similar to span attributes/data
other: Object<Value>
Additional arbitrary fields for forwards compatibility.
Trait Implementations§
Source§impl FromValue for SpanLink
impl FromValue for SpanLink
Source§fn from_value(__value: Annotated<Value>) -> Annotated<Self>
fn from_value(__value: Annotated<Value>) -> Annotated<Self>
Creates a meta structure from an annotated boxed value.
Source§impl IntoValue for SpanLink
impl IntoValue for SpanLink
Source§fn into_value(self) -> Value
fn into_value(self) -> Value
Boxes the meta structure back into a value.
Source§fn serialize_payload<S>(
&self,
__serializer: S,
__behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
fn serialize_payload<S>(
&self,
__serializer: S,
__behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
Efficiently serializes the payload directly.
Source§fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
Extracts children meta map out of a value.
§fn extract_meta_tree(value: &Annotated<Self>) -> MetaTreewhere
Self: Sized,
fn extract_meta_tree(value: &Annotated<Self>) -> MetaTreewhere
Self: Sized,
Extracts the meta tree out of annotated value. Read more
Source§impl ProcessValue for SpanLink
impl ProcessValue for SpanLink
Source§fn value_type(&self) -> EnumSet<ValueType>
fn value_type(&self) -> EnumSet<ValueType>
Returns the type of the value.
Source§fn process_value<P>(
&mut self,
__meta: &mut Meta,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
fn process_value<P>(
&mut self,
__meta: &mut Meta,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
Executes a processor on this value.
Source§fn process_child_values<P>(
&mut self,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
fn process_child_values<P>(
&mut self,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
Recurses into children of this value.
impl StructuralPartialEq for SpanLink
Auto Trait Implementations§
impl Freeze for SpanLink
impl RefUnwindSafe for SpanLink
impl Send for SpanLink
impl Sync for SpanLink
impl Unpin for SpanLink
impl UnwindSafe for SpanLink
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