Struct zipkin::trace_context::Builder
[−]
[src]
pub struct Builder { /* fields omitted */ }
A builder type for TraceContext
s.
Methods
impl Builder
[src]
pub fn parent_id(&mut self, parent_id: SpanId) -> &mut Builder
[src]
Sets the ID of the parent span of this context.
Defaults to None
.
pub fn sampling_flags(&mut self, flags: SamplingFlags) -> &mut Builder
[src]
Sets the sampling flags for this context.
pub fn sampled(&mut self, sampled: bool) -> &mut Builder
[src]
Sets the sampling request for this context.
Defaults to None
.
pub fn debug(&mut self, debug: bool) -> &mut Builder
[src]
Sets the debug flag for this request.
Defaults to false
.
pub fn build(&self, trace_id: TraceId, span_id: SpanId) -> TraceContext
[src]
Constructs a TraceContext
.