1
0
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:
Mike Goldsmith
2020-03-13 19:17:52 +00:00
committed by GitHub
parent cba1664b46
commit 638b865c90
5 changed files with 30 additions and 30 deletions

View File

@@ -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 {