MCPcopy
hub / github.com/rs/zerolog / BasicSampler

Struct BasicSampler

sampler.go:42–45  ·  view source on GitHub ↗

BasicSampler is a sampler that will send every Nth events, regardless of their level.

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected