Struct opentelemetry_api::trace::noop::NoopTracer
source · [−]pub struct NoopTracer { /* private fields */ }
Available on crate feature
trace
only.Expand description
A no-op instance of a Tracer
.
Implementations
sourceimpl NoopTracer
impl NoopTracer
Trait Implementations
sourceimpl Clone for NoopTracer
impl Clone for NoopTracer
sourcefn clone(&self) -> NoopTracer
fn clone(&self) -> NoopTracer
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NoopTracer
impl Debug for NoopTracer
sourceimpl Default for NoopTracer
impl Default for NoopTracer
sourcefn default() -> NoopTracer
fn default() -> NoopTracer
Returns the “default value” for a type. Read more
sourceimpl Tracer for NoopTracer
impl Tracer for NoopTracer
sourcefn build_with_context(
&self,
_builder: SpanBuilder,
parent_cx: &Context
) -> Self::Span
fn build_with_context(
&self,
_builder: SpanBuilder,
parent_cx: &Context
) -> Self::Span
Builds a NoopSpan
from a SpanBuilder
.
If the span builder or the context’s current span contains a valid span context, it is propagated.
sourcefn start_with_context<T>(&self, name: T, parent_cx: &Context) -> Self::Spanwhere
T: Into<Cow<'static, str>>,
fn start_with_context<T>(&self, name: T, parent_cx: &Context) -> Self::Spanwhere
T: Into<Cow<'static, str>>,
sourcefn span_builder<T>(&self, name: T) -> SpanBuilderwhere
T: Into<Cow<'static, str>>,
fn span_builder<T>(&self, name: T) -> SpanBuilderwhere
T: Into<Cow<'static, str>>,
Creates a span builder. Read more
sourcefn build(&self, builder: SpanBuilder) -> Self::Span
fn build(&self, builder: SpanBuilder) -> Self::Span
Start a Span
from a SpanBuilder
.
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more