pub struct Span {
pub context: SpanContext,
pub name: String,
pub kind: SpanKind,
pub start_unix_ns: u64,
pub end_unix_ns: u64,
pub status: SpanStatus,
pub status_description: Option<String>,
pub attributes: Vec<Attribute>,
}Expand description
Ein abgeschlossener Span.
In ZeroDDS bauen wir Spans abgeschlossen auf — kein scope-guard-Magic. Caller misst Start/Ende manuell, der Sink bekommt das Result.
Fields§
§context: SpanContextSpan-Kontext (Trace+Span-ID + Parent).
name: StringSpan-Name (z.B. "dcps.write").
kind: SpanKindSpan-Kind.
start_unix_ns: u64Start-Time relativ zu einem monotonen Origin (ns).
end_unix_ns: u64Ende-Time relativ zum gleichen Origin.
status: SpanStatusStatus.
status_description: Option<String>Optionale Status-Beschreibung (z.B. Fehler-Message).
attributes: Vec<Attribute>Attribute, beliebig viele.
Implementations§
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 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