[−][src]Struct opentelemetry::api::trace::noop::NoopTracer
A no-op instance of a Tracer
.
Trait Implementations
impl Debug for 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(&self, _name: &str, _context: Option<SpanContext>) -> Self::Span
[src]
Starts a new NoopSpan
.
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
fn get_active_span(&self) -> Self::Span
[src]
Returns a new NoopSpan
as this tracer does not maintain a registry.
fn mark_span_as_active(&self, _span: &Self::Span)
[src]
Ignores active span state.
fn mark_span_as_inactive(&self, _span_id: SpanId)
[src]
Ignores active span state.
fn clone_span(&self, _span: &Self::Span) -> Self::Span
[src]
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<S, T> GenericTracer for T where
S: Span,
T: Tracer<Span = S>,
[src]
S: Span,
T: Tracer<Span = S>,
fn invalid_boxed(&Self) -> Box<dyn Span + 'static>
[src]
Create a new invalid span for use in cases where there are no active spans.
fn start_boxed(&Self, &str, Option<SpanContext>) -> Box<dyn Span + 'static>
[src]
Returns a trait object so the underlying implementation can be swapped out at runtime.
fn build_boxed(&Self, SpanBuilder) -> Box<dyn Span + 'static>
[src]
Returns a trait object so the underlying implementation can be swapped out at runtime.
fn get_active_span_boxed(&Self) -> Box<dyn Span + 'static>
[src]
Returns the current active span.
fn mark_span_as_active_boxed(&Self, &(dyn Span + 'static))
[src]
Mark span as active.
fn mark_span_as_inactive_boxed(&Self, SpanId)
[src]
Mark span as inactive.
fn clone_span_boxed(&Self, &(dyn Span + 'static)) -> Box<dyn Span + 'static>
[src]
Clone span
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<S> TracerGenerics for S where
S: Tracer,
[src]
S: Tracer,
fn with_span<T, F>(&Self, &'static str, F) -> T where
F: FnOnce(&<S as Tracer>::Span) -> T,
[src]
F: FnOnce(&<S as Tracer>::Span) -> T,
Wraps the execution of the function body with a span. It starts a new span and sets it as the active span for the given function. It then executes the body. It closes the span before returning the execution result.
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>,