Struct opentelemetry::sdk::trace::Tracer [−][src]
pub struct Tracer { /* fields omitted */ }
trace
only.Expand description
Tracer
implementation to create and manage spans
Implementations
TracerProvider associated with this tracer.
instrumentation library information of this tracer.
Trait Implementations
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.
Starts a new Span
with a given context.
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.
Creates a span builder
An ergonomic way for attributes to be configured before the Span
is started.
Starts a span from a SpanBuilder
.
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.
Starts a new Span
. Read more
Start a new span and execute the given closure with reference to the span’s context. Read more
Auto Trait Implementations
impl !RefUnwindSafe for Tracer
impl !UnwindSafe for Tracer
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V