Skip to main content

InspectableSpan

Trait InspectableSpan 

Source
pub trait InspectableSpan<T> {
    // Required methods
    fn operation_name(&self) -> &str;
    fn start_time(&self) -> SystemTime;
    fn finish_time(&self) -> Option<SystemTime>;
    fn logs(&self) -> &[Log];
    fn tags(&self) -> &[Tag];
    fn references(&self) -> &[SpanReference<T>];
}
Expand description

Extension trait for inspecting an in-progress Span.

Required Methods§

Source

fn operation_name(&self) -> &str

Returns the operation name of this span.

Source

fn start_time(&self) -> SystemTime

Returns the start time of this span.

Source

fn finish_time(&self) -> Option<SystemTime>

Returns the finish time of this span, if it has finished.

Source

fn logs(&self) -> &[Log]

Returns the logs recorded during this span.

Source

fn tags(&self) -> &[Tag]

Returns the tags of this span.

Source

fn references(&self) -> &[SpanReference<T>]

Returns the references of this span.

Implementors§

Source§

impl<T> InspectableSpan<T> for Span<T>