Struct opentelemetry::sdk::trace::TracerProvider
source · pub struct TracerProvider { /* private fields */ }
Expand description
Creator and registry of named Tracer
instances.
Implementations§
Trait Implementations§
source§impl Clone for TracerProvider
impl Clone for TracerProvider
source§fn clone(&self) -> TracerProvider
fn clone(&self) -> TracerProvider
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 TracerProvider
impl Debug for TracerProvider
source§impl Default for TracerProvider
impl Default for TracerProvider
source§impl TracerProvider for TracerProvider
impl TracerProvider for TracerProvider
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
Create a new versioned Tracer
instance.
source§fn force_flush(&self) -> Vec<TraceResult<()>>
fn force_flush(&self) -> Vec<TraceResult<()>>
Force flush all remaining spans in span processors and return results.
Auto Trait Implementations§
impl !RefUnwindSafe for TracerProvider
impl Send for TracerProvider
impl Sync for TracerProvider
impl Unpin for TracerProvider
impl !UnwindSafe for TracerProvider
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<S, T, P> ObjectSafeTracerProvider for Pwhere
S: Span + Send + Sync + 'static,
T: Tracer<Span = S> + Send + Sync + 'static,
P: TracerProvider<Tracer = T>,
impl<S, T, P> ObjectSafeTracerProvider for Pwhere S: Span + Send + Sync + 'static, T: Tracer<Span = S> + Send + Sync + 'static, P: TracerProvider<Tracer = T>,
source§fn versioned_tracer_boxed(
&self,
name: Cow<'static, str>,
version: Option<&'static str>,
schema_url: Option<&'static str>
) -> Box<dyn ObjectSafeTracer + Send + Sync>
fn versioned_tracer_boxed( &self, name: Cow<'static, str>, version: Option<&'static str>, schema_url: Option<&'static str> ) -> Box<dyn ObjectSafeTracer + Send + Sync>
Return a versioned boxed tracer
source§fn force_flush(&self) -> Vec<Result<(), TraceError>>
fn force_flush(&self) -> Vec<Result<(), TraceError>>
Force flush all remaining spans in span processors and return results.