[−][src]Trait zipkin::sample::Sample
A sampler decides whether or not a span should be recorded based on its trace ID.
A trace context received from a remote service may already indicate if the
span should be recorded, but if it does not, a Sample
r is responsible for
making that decision.
Required methods
fn sample(&self, trace_id: TraceId) -> bool
Returns true
if the span associated with the trace ID should be
recorded.
Implementations on Foreign Types
impl<T: ?Sized> Sample for Arc<T> where
T: Sample,
[src]
T: Sample,
impl<T: ?Sized> Sample for Box<T> where
T: Sample,
[src]
Loading content...
T: Sample,