pub struct SpanV2Link {
pub trace_id: Annotated<TraceId>,
pub span_id: Annotated<SpanId>,
pub sampled: Annotated<bool>,
pub attributes: Annotated<Object<Attribute>>,
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<Attribute>>
Span link attributes, similar to span attributes/data.
other: Object<Value>
Additional arbitrary fields for forwards compatibility.
Trait Implementations§
Source§impl Clone for SpanV2Link
impl Clone for SpanV2Link
Source§fn clone(&self) -> SpanV2Link
fn clone(&self) -> SpanV2Link
Returns a copy 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 SpanV2Link
impl Debug for SpanV2Link
Source§impl Default for SpanV2Link
impl Default for SpanV2Link
Source§fn default() -> SpanV2Link
fn default() -> SpanV2Link
Returns the “default value” for a type. Read more
Source§impl Empty for SpanV2Link
impl Empty for SpanV2Link
Source§impl FromObjectRef for SpanV2Link
impl FromObjectRef for SpanV2Link
Source§fn from_object_ref(__obj: &mut Object<Value>) -> Self
fn from_object_ref(__obj: &mut Object<Value>) -> Self
Creates a meta structure from key value pairs. Read more
Source§impl FromValue for SpanV2Link
impl FromValue for SpanV2Link
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 IntoObjectRef for SpanV2Link
impl IntoObjectRef for SpanV2Link
Source§fn into_object_ref(self, __map: &mut Object<Value>)
fn into_object_ref(self, __map: &mut Object<Value>)
Boxes the meta structure back into an object of values. Read more
Source§impl IntoValue for SpanV2Link
impl IntoValue for SpanV2Link
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 PartialEq for SpanV2Link
impl PartialEq for SpanV2Link
Source§impl ProcessValue for SpanV2Link
impl ProcessValue for SpanV2Link
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 SpanV2Link
Auto Trait Implementations§
impl Freeze for SpanV2Link
impl RefUnwindSafe for SpanV2Link
impl Send for SpanV2Link
impl Sync for SpanV2Link
impl Unpin for SpanV2Link
impl UnwindSafe for SpanV2Link
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