pub struct CompletedSpan {
pub trace_id: TraceId,
pub span_id: SpanId,
pub parent_span_id: SpanId,
pub name: Cow<'static, str>,
pub kind: SpanKind,
pub start_time_ns: u64,
pub end_time_ns: u64,
pub status: SpanStatus,
pub attributes: Vec<SpanAttribute>,
pub events: Vec<SpanEvent>,
}Expand description
A finalized span with start and end timestamps, ready for export.
Fields§
§trace_id: TraceId§span_id: SpanId§parent_span_id: SpanId§name: Cow<'static, str>§kind: SpanKind§start_time_ns: u64§end_time_ns: u64§status: SpanStatus§attributes: Vec<SpanAttribute>§events: Vec<SpanEvent>Implementations§
Auto Trait Implementations§
impl Freeze for CompletedSpan
impl RefUnwindSafe for CompletedSpan
impl Send for CompletedSpan
impl Sync for CompletedSpan
impl Unpin for CompletedSpan
impl UnsafeUnpin for CompletedSpan
impl UnwindSafe for CompletedSpan
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request