Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rate ¶ added in v0.15.0
type Rate float64
Rate is a sample rate.
func (*Rate) UnmarshalYAML ¶ added in v0.15.0
UnmarshalYAML unmarshals a sample rate.
type Sampler ¶
type Sampler struct {
// contains filtered or unexported fields
}
Sampler samples the requests, out of 100 sample calls, 100*sampleRate calls will be sampled.
func NewSampler ¶
NewSampler creates a new sampler with a sample rate.
func (*Sampler) SampleRate ¶ added in v0.15.0
SampleRate returns the effective sample rate.
Click to show internal directories.
Click to hide internal directories.