You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-11-25 22:41:46 +02:00
Update Sampler descriptions (#511)
* update always and never sample descriptions * fix typo * rename always on / off sampler files, structs and variables to match Co-authored-by: Rahul Patel <rahulpa@google.com>
This commit is contained in:
@@ -79,7 +79,7 @@ func (ps probabilitySampler) Description() string {
|
||||
|
||||
// ProbabilitySampler samples a given fraction of traces. Fractions >= 1 will
|
||||
// always sample. If the parent span is sampled, then it's child spans will
|
||||
// automatically be sampled. Fractions <0 are treated as zero, but spans may
|
||||
// automatically be sampled. Fractions < 0 are treated as zero, but spans may
|
||||
// still be sampled if their parent is.
|
||||
func ProbabilitySampler(fraction float64) Sampler {
|
||||
if fraction >= 1 {
|
||||
|
||||
Reference in New Issue
Block a user