Struct zipkin::tracer::Builder
[−]
[src]
pub struct Builder { /* fields omitted */ }
A builder type for Tracer
s.
Methods
impl Builder
[src]
pub fn reporter(&mut self, reporter: Box<Report + Sync + Send>) -> &mut Builder
[src]
Sets the reporter which consumes completed spans.
Defaults to the LoggingReporter
.
pub fn sampler(&mut self, sampler: Box<Sample + Sync + Send>) -> &mut Builder
[src]
Sets the sampler which determines if a trace should be tracked and reported.
Defaults to the AlwaysSampler
.
pub fn build(&mut self, local_endpoint: Endpoint) -> Tracer
[src]
Constructs a new Tracer
.