Struct opentelemetry::trace::noop::NoopSpan [−][src]
pub struct NoopSpan { /* fields omitted */ }
This is supported on crate feature
trace
only.Expand description
A no-op instance of a Span
.
Implementations
Trait Implementations
fn add_event_with_timestamp(
&mut self,
_name: String,
_timestamp: SystemTime,
_attributes: Vec<KeyValue>
)
fn add_event_with_timestamp(
&mut self,
_name: String,
_timestamp: SystemTime,
_attributes: Vec<KeyValue>
)
Ignores all events with timestamps
Returns an invalid SpanContext
.
Returns false, signifying that this span is never recording.
Ignores all attributes
Ignores status
Ignores name updates
Ignores Span
endings
Convenience method to record an exception/error as an Event
Read more
Convenience method to record a exception/error as an Event
with custom stacktrace Read more
Auto Trait Implementations
impl RefUnwindSafe for NoopSpan
impl UnwindSafe for NoopSpan
Blanket Implementations
Mutably borrows from an owned value. Read more