pub struct Span {
pub span_id: String,
pub parent_span_id: Option<String>,
pub trace_id: String,
pub name: String,
pub attributes: HashMap<String, String>,
pub status: String,
pub error_message: String,
pub duration_ms: f64,
pub layer: String,
}Expand description
Span represents a unit of work in distributed tracing
Fields§
§span_id: StringSpan ID
parent_span_id: Option<String>Parent span ID (if any)
trace_id: StringTrace ID
name: StringSpan name
attributes: HashMap<String, String>Span attributes
status: StringSpan status
error_message: StringError message (if failed)
duration_ms: f64Duration in milliseconds
layer: StringArchitecture layer (if applicable)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Span
impl RefUnwindSafe for Span
impl Send for Span
impl Sync for Span
impl Unpin 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