Copyright © 2017 Takeru Ohta <phjgt308@gmail.com>
Behaviours: passage_sampler.
Probabilistic Sampler.
This sampler samples the spans probabilistically.
Context = passage_span_context_null, Sampler = passage_sampler_probabilistic:new(0.5), Reporter = passage_reporter_null:new(), ok = passage_tracer_registry:register(foo, Context, Sampler, Reporter).
new/1 | Makes a new sampler. |
new(SamplingRate::float()) -> passage_sampler:sampler()
Makes a new sampler.
This will sample spans by the given SamplingRate
.
E.g., if SamplingRate = 0.5
, the half of the spans are sampled probabilistically.
SamplingRate
must be between 0.0
and 1.0
.
Generated by EDoc