Struct zipkin::Tracer [] [src]

pub struct Tracer(_);

The root tracing object.

Each thread has its own current span state - the Tracer should be a single global resource.

Methods

impl Tracer
[src]

[src]

Creates a Tracer builder.

[src]

Starts a new trace with no parent.

[src]

Starts a new trace with no parent with specific sampling flags.

[src]

Joins an existing trace.

The context can come from, for example, the headers of an HTTP request.

[src]

Starts a new span with the specified parent.

[src]

Starts a new trace parented to the current span if one exists.

[src]

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.

[src]

Returns this thread's current trace context.

Trait Implementations

impl Clone for Tracer
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Tracer

impl Sync for Tracer