Struct opentelemetry::global::GlobalTracerProvider
source · pub struct GlobalTracerProvider { /* private fields */ }
Expand description
Represents the globally configured TracerProvider
instance for this
application. This allows generic tracing through the returned
BoxedTracer
instances.
Trait Implementations§
source§impl Clone for GlobalTracerProvider
impl Clone for GlobalTracerProvider
source§fn clone(&self) -> GlobalTracerProvider
fn clone(&self) -> GlobalTracerProvider
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 GlobalTracerProvider
impl Debug for GlobalTracerProvider
source§impl TracerProvider for GlobalTracerProvider
impl TracerProvider for GlobalTracerProvider
source§fn tracer_with_scope(&self, scope: InstrumentationScope) -> Self::Tracer
fn tracer_with_scope(&self, scope: InstrumentationScope) -> Self::Tracer
Create a tracer using the global provider.
source§type Tracer = BoxedTracer
type Tracer = BoxedTracer
The
Tracer
type that this provider will return.Auto Trait Implementations§
impl Freeze for GlobalTracerProvider
impl !RefUnwindSafe for GlobalTracerProvider
impl Send for GlobalTracerProvider
impl Sync for GlobalTracerProvider
impl Unpin for GlobalTracerProvider
impl !UnwindSafe for GlobalTracerProvider
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
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,
scope: InstrumentationScope,
) -> Box<dyn ObjectSafeTracer + Sync + Send>
fn boxed_tracer( &self, scope: InstrumentationScope, ) -> Box<dyn ObjectSafeTracer + Sync + Send>
Return a versioned boxed tracer