[−][src]Struct opentelemetry::api::trace::noop::NoopSpan
A no-op instance of a Span
.
Methods
impl NoopSpan
[src]
Trait Implementations
impl Debug for NoopSpan
[src]
impl Default for NoopSpan
[src]
impl Span for NoopSpan
[src]
fn add_event(&self, _name: String, _attributes: Vec<KeyValue>)
[src]
Ignores all events
fn add_event_with_timestamp(
&self,
_name: String,
_timestamp: SystemTime,
_attributes: Vec<KeyValue>
)
[src]
&self,
_name: String,
_timestamp: SystemTime,
_attributes: Vec<KeyValue>
)
Ignores all events with timestamps
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(&self, _attribute: KeyValue)
[src]
Ignores all attributes
fn set_status(&self, _code: StatusCode, _message: String)
[src]
Ignores status
fn update_name(&self, _new_name: String)
[src]
Ignores name updates
fn end(&self)
[src]
Ignores Span
endings.
fn as_any(&self) -> &dyn Any
[src]
Returns self as dyn Any
fn mark_as_active(&self)
[src]
Ignores being marked as active
fn mark_as_inactive(&self)
[src]
Ignores being marked as inactive
Auto Trait Implementations
impl RefUnwindSafe for NoopSpan
impl Send for NoopSpan
impl Sync for NoopSpan
impl Unpin for NoopSpan
impl UnwindSafe for NoopSpan
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<F> Instrument for F
[src]
fn instrument<S: Span>(self, span: S) -> Instrumented<Self, S>
[src]
fn in_active_span<T: Tracer>(self, tracer: T) -> Instrumented<Self, T::Span>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,