[−][src]Struct opentelemetry::trace::NoopTracer
A no-op instance of a Tracer.
Implementations
impl NoopTracer[src]
Trait Implementations
impl Debug for NoopTracer[src]
impl Default for NoopTracer[src]
fn default() -> NoopTracer[src]
impl Tracer for NoopTracer[src]
type Span = NoopSpan
The Span type used by this Tracer.
fn invalid(&self) -> Self::Span[src]
Returns a NoopSpan as they are always invalid.
fn start_with_context(&self, name: &str, cx: Context) -> Self::Span[src]
Starts a new NoopSpan with a given context.
If the context contains a valid span context, it is propagated.
fn span_builder(&self, name: &str) -> SpanBuilder[src]
Starts a SpanBuilder.
fn build(&self, builder: SpanBuilder) -> Self::Span[src]
Builds a NoopSpan from a SpanBuilder.
If the span builder or context contains a valid span context, it is propagated.
fn start(&self, name: &str) -> Self::Span[src]
fn in_span<T, F>(&self, name: &'static str, f: F) -> T where
F: FnOnce(Context) -> T,
Self::Span: Send + Sync, [src]
F: FnOnce(Context) -> T,
Self::Span: Send + Sync,
fn with_span<T, F>(&self, span: Self::Span, f: F) -> T where
F: FnOnce(Context) -> T,
Self::Span: Send + Sync, [src]
F: FnOnce(Context) -> T,
Self::Span: Send + Sync,
Auto Trait Implementations
impl RefUnwindSafe for NoopTracer
impl Send for NoopTracer
impl Sync for NoopTracer
impl Unpin for NoopTracer
impl UnwindSafe for NoopTracer
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,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>, [src]
V: MultiLane<T>,