pub struct NoopTracerProvider { /* private fields */ }Available on crate feature
trace only.Expand description
A no-op instance of a TracerProvider.
Implementations§
Trait Implementations§
Source§impl Clone for NoopTracerProvider
impl Clone for NoopTracerProvider
Source§fn clone(&self) -> NoopTracerProvider
fn clone(&self) -> NoopTracerProvider
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NoopTracerProvider
impl Debug for NoopTracerProvider
Source§impl Default for NoopTracerProvider
impl Default for NoopTracerProvider
Source§fn default() -> NoopTracerProvider
fn default() -> NoopTracerProvider
Returns the “default value” for a type. Read more
Source§impl TracerProvider for NoopTracerProvider
impl TracerProvider for NoopTracerProvider
Source§fn versioned_tracer(
&self,
_name: impl Into<Cow<'static, str>>,
_version: Option<&'static str>,
_schema_url: Option<&'static str>,
) -> Self::Tracer
fn versioned_tracer( &self, _name: impl Into<Cow<'static, str>>, _version: Option<&'static str>, _schema_url: Option<&'static str>, ) -> Self::Tracer
Returns a new NoopTracer instance.
Source§fn force_flush(&self) -> Vec<TraceResult<()>> ⓘ
fn force_flush(&self) -> Vec<TraceResult<()>> ⓘ
Return an empty Vec as there isn’t any span processors in NoopTracerProvider
Source§type Tracer = NoopTracer
type Tracer = NoopTracer
The
Tracer type that this provider will return.Auto Trait Implementations§
impl Freeze for NoopTracerProvider
impl RefUnwindSafe for NoopTracerProvider
impl Send for NoopTracerProvider
impl Sync for NoopTracerProvider
impl Unpin for NoopTracerProvider
impl UnwindSafe for NoopTracerProvider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Available on crate feature
trace only.Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Available on crate feature
trace only.Source§impl<S, T, P> ObjectSafeTracerProvider for P
impl<S, T, P> ObjectSafeTracerProvider for P
Source§fn versioned_tracer_boxed(
&self,
name: Cow<'static, str>,
version: Option<&'static str>,
schema_url: Option<&'static str>,
) -> Box<dyn ObjectSafeTracer + Sync + Send>
Available on crate feature trace only.
fn versioned_tracer_boxed( &self, name: Cow<'static, str>, version: Option<&'static str>, schema_url: Option<&'static str>, ) -> Box<dyn ObjectSafeTracer + Sync + Send>
trace only.Return a versioned boxed tracer
Source§fn force_flush(&self) -> Vec<Result<(), TraceError>>
fn force_flush(&self) -> Vec<Result<(), TraceError>>
Available on crate feature
trace only.Force flush all remaining spans in span processors and return results.