[−][src]Trait holochain_tracing::tracer_network::Sampler
Sampler
decides whether a new trace should be sampled or not.
Required methods
fn is_sampled(&self, span: &CandidateSpan<T>) -> bool
This method decides whether a trace with given span
should be sampled.
Provided methods
fn or<U>(self, other: U) -> OrSampler<Self, U> where
U: Sampler<T>,
U: Sampler<T>,
Returns the sampler that samples a trace if self
or other
decides to sample it.
fn and<U>(self, other: U) -> AndSampler<Self, U> where
U: Sampler<T>,
U: Sampler<T>,
Returns the sampler that samples a trace if both of self
and other
decides to sample it.
fn boxed(self) -> Box<dyn Sampler<T> + 'static + Sync + Send> where
Self: Send + Sync + 'static,
Self: Send + Sync + 'static,
Converts into BoxSampler
.
Implementations on Foreign Types
impl<T> Sampler<T> for Box<dyn Sampler<T> + 'static + Sync + Send>
[src]
fn is_sampled(&self, span: &CandidateSpan<T>) -> bool
[src]
fn boxed(self) -> Box<dyn Sampler<T> + 'static + Sync + Send> where
Box<dyn Sampler<T> + 'static + Sync + Send>: Sized,
Box<dyn Sampler<T> + 'static + Sync + Send>: Send,
Box<dyn Sampler<T> + 'static + Sync + Send>: 'static,
[src]
Box<dyn Sampler<T> + 'static + Sync + Send>: Sized,
Box<dyn Sampler<T> + 'static + Sync + Send>: Send,
Box<dyn Sampler<T> + 'static + Sync + Send>: 'static,
Implementors
impl<A, B, T> Sampler<T> for AndSampler<A, B> where
A: Sampler<T>,
B: Sampler<T>,
[src]
A: Sampler<T>,
B: Sampler<T>,
fn is_sampled(&self, span: &CandidateSpan<T>) -> bool
[src]
impl<A, B, T> Sampler<T> for OrSampler<A, B> where
A: Sampler<T>,
B: Sampler<T>,
[src]
A: Sampler<T>,
B: Sampler<T>,