[][src]Function zipkin::set_current

pub fn set_current(context: TraceContext) -> CurrentGuard

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.