pub struct TraceSpan {
pub trace_id: String,
pub span_id: String,
pub parent_span_id: Option<String>,
pub operation_name: String,
pub service_id: String,
pub start_time: u64,
pub end_time: Option<u64>,
pub duration_ns: Option<u64>,
pub status: SpanStatus,
pub tags: HashMap<String, String>,
pub logs: Vec<LogEntry>,
pub baggage: HashMap<String, String>,
}Expand description
Individual span in a distributed trace
Fields§
§trace_id: StringUnique trace identifier
span_id: StringUnique span identifier
parent_span_id: Option<String>Parent span ID (None for root spans)
operation_name: StringOperation name
service_id: StringService identifier
start_time: u64Start timestamp (nanoseconds since epoch)
end_time: Option<u64>End timestamp (nanoseconds since epoch)
duration_ns: Option<u64>Duration in nanoseconds
status: SpanStatusSpan status
Key-value tags
logs: Vec<LogEntry>Log entries
baggage: HashMap<String, String>Cross-process baggage
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TraceSpan
impl RefUnwindSafe for TraceSpan
impl Send for TraceSpan
impl Sync for TraceSpan
impl Unpin for TraceSpan
impl UnwindSafe for TraceSpan
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more