pub struct TracerProvider { /* private fields */ }
Available on crate feature
trace
only.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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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 Freeze for TracerProvider
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<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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
fn versioned_tracer_boxed( &self, name: Cow<'static, str>, version: Option<&'static str>, schema_url: Option<&'static str>, ) -> Box<dyn ObjectSafeTracer + Sync + Send>
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.