Struct opentelemetry::sdk::trace::Tracer[][src]

pub struct Tracer { /* fields omitted */ }
This is supported on crate feature 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 copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the Tracer using the given formatter. Omitting provider here is necessary to avoid cycles.

This implementation of Tracer produces sdk::Span instances.

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

Start a new span and execute the given closure with reference to the span’s context. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.