pub struct DistributedSpan {
pub span_id: String,
pub trace_id: String,
pub parent_span_id: Option<String>,
pub operation_name: String,
pub start_time: Instant,
pub end_time: Option<Instant>,
pub kind: SpanKind,
pub status: SpanStatus,
pub attributes: HashMap<String, String>,
pub events: Vec<SpanEvent>,
pub links: Vec<SpanLink>,
}Expand description
Distributed tracing span with full context
Fields§
§span_id: StringUnique span ID
trace_id: StringTrace ID for correlation
parent_span_id: Option<String>Parent span ID (if any)
operation_name: StringOperation name
start_time: InstantStart time
end_time: Option<Instant>End time (when completed)
kind: SpanKindSpan kind
status: SpanStatusStatus
attributes: HashMap<String, String>Attributes
events: Vec<SpanEvent>Events within the span
links: Vec<SpanLink>Links to other spans
Trait Implementations§
Source§impl Clone for DistributedSpan
impl Clone for DistributedSpan
Source§fn clone(&self) -> DistributedSpan
fn clone(&self) -> DistributedSpan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DistributedSpan
impl RefUnwindSafe for DistributedSpan
impl Send for DistributedSpan
impl Sync for DistributedSpan
impl Unpin for DistributedSpan
impl UnsafeUnpin for DistributedSpan
impl UnwindSafe for DistributedSpan
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,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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