Struct zipkin::sample::RandomSampler [] [src]

pub struct RandomSampler { /* fields omitted */ }

A Sampler which randomly samples at a specific rate.

Methods

impl RandomSampler
[src]

[src]

Creates a new RandomSampler at the specified rate.

Panics

Panics if rate is less than 0 or greater than 1.

Trait Implementations

impl Sample for RandomSampler
[src]

[src]

Returns true if the span associated with the trace ID should be recorded. Read more

Auto Trait Implementations

impl Send for RandomSampler

impl Sync for RandomSampler