Tapper Plug v0.4.0 Tapper.Plug.Sampler.Simple View Source

Simple sampler; sample x percent of traces.

Specify :percent option in Tapper.Plug.Trace config.

Example

plug Tapper.Plug.Trace, sampler: Tapper.Plug.Sampler.Simple, percent: 25

Link to this section Summary

Link to this section Functions

Callback implementation for Tapper.Plug.Sampler.sample?/2.