pub struct SpanV2 {
pub trace_id: Annotated<TraceId>,
pub parent_span_id: Annotated<SpanId>,
pub span_id: Annotated<SpanId>,
pub name: Annotated<OperationType>,
pub status: Annotated<SpanV2Status>,
pub is_segment: Annotated<bool>,
pub start_timestamp: Annotated<Timestamp>,
pub end_timestamp: Annotated<Timestamp>,
pub links: Annotated<Array<SpanV2Link>>,
pub attributes: Annotated<Attributes>,
pub other: Object<Value>,
}Expand description
A version 2 (transactionless) span.
Fields§
§trace_id: Annotated<TraceId>The ID of the trace to which this span belongs.
parent_span_id: Annotated<SpanId>The ID of the span enclosing this span.
span_id: Annotated<SpanId>The Span ID.
name: Annotated<OperationType>Span type (see OperationType docs).
status: Annotated<SpanV2Status>The span’s status.
is_segment: Annotated<bool>Whether this span is the root span of a segment.
start_timestamp: Annotated<Timestamp>Timestamp when the span started.
end_timestamp: Annotated<Timestamp>Timestamp when the span was ended.
links: Annotated<Array<SpanV2Link>>Links from this span to other spans.
attributes: Annotated<Attributes>Arbitrary attributes on a span.
other: Object<Value>Additional arbitrary fields for forwards compatibility.
Trait Implementations§
Source§impl FromObjectRef for SpanV2
impl FromObjectRef for SpanV2
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 SpanV2
impl FromValue for SpanV2
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 SpanV2
impl IntoObjectRef for SpanV2
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 SpanV2
impl IntoValue for SpanV2
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 SpanV2
impl ProcessValue for SpanV2
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 SpanV2
Auto Trait Implementations§
impl Freeze for SpanV2
impl RefUnwindSafe for SpanV2
impl Send for SpanV2
impl Sync for SpanV2
impl Unpin for SpanV2
impl UnwindSafe for SpanV2
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