BasicSampler is a sampler that will send every Nth events, regardless of their level.
| 40 | // BasicSampler is a sampler that will send every Nth events, regardless of |
| 41 | // their level. |
| 42 | type BasicSampler struct { |
| 43 | N uint32 |
| 44 | counter uint32 |
| 45 | } |
| 46 | |
| 47 | // Sample implements the Sampler interface. |
| 48 | func (s *BasicSampler) Sample(lvl Level) bool { |
nothing calls this directly
no outgoing calls
no test coverage detected