[−][src]Struct opentelemetry::api::trace::noop::NoopSpan
A no-op instance of a Span
.
Methods
impl NoopSpan
[src]
Trait Implementations
impl Span for NoopSpan
[src]
fn add_event(&mut self, _message: String)
[src]
Ignores all events
fn add_event_with_timestamp(&mut self, _message: String, _timestamp: SystemTime)
[src]
Ignores all events with timestamps
fn add_link(&mut self, _link: SpanContext)
[src]
Ignores all links
fn get_context(&self) -> SpanContext
[src]
Returns an invalid SpanContext
.
fn is_recording(&self) -> bool
[src]
Returns false, signifying that this span is never recording.
fn set_attribute(&mut self, _attribute: KeyValue)
[src]
Ignores all attributes
fn set_status(&mut self, _status: String)
[src]
Ignores status
fn update_name(&mut self, _new_name: String)
[src]
Ignors name updates
fn end(&mut self)
[src]
Ignores Span
endings.
fn as_any(&self) -> &dyn Any
[src]
Returns self as dyn Any
impl Default for NoopSpan
[src]
impl Debug for NoopSpan
[src]
Auto Trait Implementations
impl Send for NoopSpan
impl Sync for NoopSpan
impl Unpin for NoopSpan
impl UnwindSafe for NoopSpan
impl RefUnwindSafe for NoopSpan
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,