Struct opentelemetry::trace::noop::NoopTracerProvider
source · pub struct NoopTracerProvider { /* private fields */ }
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 copy 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 library_tracer(&self, _library: Arc<InstrumentationLibrary>) -> Self::Tracer
fn library_tracer(&self, _library: Arc<InstrumentationLibrary>) -> Self::Tracer
Returns a new NoopTracer
instance.
§type Tracer = NoopTracer
type Tracer = NoopTracer
The
Tracer
type that this provider will return.source§fn tracer(&self, name: impl Into<Cow<'static, str>>) -> Self::Tracer
fn tracer(&self, name: impl Into<Cow<'static, str>>) -> Self::Tracer
Returns a new tracer with the given name. Read more
source§fn versioned_tracer(
&self,
name: impl Into<Cow<'static, str>>,
version: Option<impl Into<Cow<'static, str>>>,
schema_url: Option<impl Into<Cow<'static, str>>>,
attributes: Option<Vec<KeyValue>>,
) -> Self::Tracer
fn versioned_tracer( &self, name: impl Into<Cow<'static, str>>, version: Option<impl Into<Cow<'static, str>>>, schema_url: Option<impl Into<Cow<'static, str>>>, attributes: Option<Vec<KeyValue>>, ) -> Self::Tracer
👎Deprecated since 0.23.0: Please use tracer_builder() instead
Deprecated, use
TracerProvider::tracer_builder()
Read moreAuto 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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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> ⓘ
source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
source§impl<S, T, P> ObjectSafeTracerProvider for P
impl<S, T, P> ObjectSafeTracerProvider for P
source§fn boxed_tracer(
&self,
library: Arc<InstrumentationLibrary>,
) -> Box<dyn ObjectSafeTracer + Send + Sync>
fn boxed_tracer( &self, library: Arc<InstrumentationLibrary>, ) -> Box<dyn ObjectSafeTracer + Send + Sync>
Return a versioned boxed tracer