Tapper Plug v0.1.0 Tapper.Plug.Sampler.Simple

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

Summary

Functions

sample?(conn, config)

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