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§
Sourcefn operation_name(&self) -> &str
fn operation_name(&self) -> &str
Returns the operation name of this span.
Sourcefn start_time(&self) -> SystemTime
fn start_time(&self) -> SystemTime
Returns the start time of this span.
Sourcefn finish_time(&self) -> Option<SystemTime>
fn finish_time(&self) -> Option<SystemTime>
Returns the finish time of this span, if it has finished.
Returns the tags of this span.
Sourcefn references(&self) -> &[SpanReference<T>]
fn references(&self) -> &[SpanReference<T>]
Returns the references of this span.