[][src]Function zipkin::set_tracer

pub fn set_tracer<S, R>(
    sampler: S,
    reporter: R,
    local_endpoint: Endpoint
) -> Result<(), SetTracerError> where
    S: Sample + 'static + Sync + Send,
    R: Report + 'static + Sync + Send

Initializes the global tracer.

The tracer can only be initialized once in the lifetime of a program. Spans created before this function is called will be no-ops.

Returns an error if the tracer is already initialized.