[−][src]Struct opentelemetry::global::BoxedTracer
Wraps the GlobalProvider's Tracer so it can be used generically by
applications without knowing the underlying type.
Trait Implementations
impl Debug for BoxedTracer[src]
impl Tracer for BoxedTracer[src]
type Span = BoxedSpan
Global tracer uses BoxedSpans so that it can be a global singleton,
which is not possible if it takes generic type parameters.
fn invalid(&self) -> Self::Span[src]
Returns a span with an inactive SpanContext. Used by functions that
need to return a default span like get_active_span if no span is present.
fn start_with_context(&self, name: &str, cx: Context) -> Self::Span[src]
Starts a new Span.
Each span has zero or one parent spans and zero or more child spans, which represent causally related operations. A tree of related spans comprises a trace. A span is said to be a root span if it does not have a parent. Each trace includes a single root span, which is the shared ancestor of all other spans in the trace.
fn span_builder(&self, name: &str) -> SpanBuilder[src]
Creates a span builder
An ergonomic way for attributes to be configured before the Span is started.
fn build(&self, builder: SpanBuilder) -> Self::Span[src]
Create a span from a SpanBuilder
fn start(&self, name: &str) -> Self::Span[src]
fn in_span<T, F>(&self, name: &'static str, f: F) -> T where
F: FnOnce(Context) -> T,
Self::Span: Send + Sync, [src]
F: FnOnce(Context) -> T,
Self::Span: Send + Sync,
fn with_span<T, F>(&self, span: Self::Span, f: F) -> T where
F: FnOnce(Context) -> T,
Self::Span: Send + Sync, [src]
F: FnOnce(Context) -> T,
Self::Span: Send + Sync,
Auto Trait Implementations
impl !RefUnwindSafe for BoxedTracer
impl Send for BoxedTracer
impl Sync for BoxedTracer
impl Unpin for BoxedTracer
impl !UnwindSafe for BoxedTracer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>, [src]
V: MultiLane<T>,