pub struct Span {
pub id: String,
pub trace_id: String,
pub parent_span_id: Option<String>,
pub name: String,
pub span_type: SpanType,
pub input: Value,
pub output: Option<Value>,
pub status: SpanStatus,
pub start_time: DateTime<Utc>,
pub end_time: Option<DateTime<Utc>>,
pub metadata: SpanMetadata,
}Expand description
A span represents a single unit of work within a trace
Fields§
§id: String§trace_id: String§parent_span_id: Option<String>§name: String§span_type: SpanType§input: Value§output: Option<Value>§status: SpanStatus§start_time: DateTime<Utc>§end_time: Option<DateTime<Utc>>§metadata: SpanMetadataType-specific metadata
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Span
impl<'de> Deserialize<'de> for Span
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
Auto Trait Implementations§
impl Freeze for Span
impl RefUnwindSafe for Span
impl Send for Span
impl Sync for Span
impl Unpin for Span
impl UnsafeUnpin for Span
impl UnwindSafe for Span
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