The root tracing object.
Each thread has its own current span state - the Tracer
should be a single
global resource.
Creates a Tracer
builder.
Starts a new trace with no parent.
Starts a new trace with no parent with specific sampling flags.
Joins an existing trace.
The context can come from, for example, the headers of an HTTP request.
Starts a new span with the specified parent.
Starts a new trace parented to the current span if one exists.
Sets this thread's current trace context.
This method does not start a span. It is designed to be used when
propagating the trace of an existing span to a new thread.
A guard object is returned which will restore the previous trace context
when it falls out of scope.
Returns this thread's current trace context.
Performs copy-assignment from source
. Read more
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
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
impl<T> UnsafeAny for T where T: Any, | |