From d052956664af54dbcff2712d10c67c76fbfc299f Mon Sep 17 00:00:00 2001 From: Gabriel Aszalos Date: Fri, 1 Jun 2018 15:26:10 +0200 Subject: [PATCH] ddtrace/tracer: make doc clearer. (#247) The previous phrasing made it unclear weather the `0.5` argument was for the amount kept or dropped. Now it's clear that `0.3` means keep 30%. --- ddtrace/tracer/doc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ddtrace/tracer/doc.go b/ddtrace/tracer/doc.go index 70c3792a42..2abd319a68 100644 --- a/ddtrace/tracer/doc.go +++ b/ddtrace/tracer/doc.go @@ -10,9 +10,9 @@ // The tracing client can perform trace sampling. While the trace agent // already samples traces to reduce bandwidth usage, client sampling reduces // performance overhead. To make use of it, the package comes with a ready-to-use -// rate sampler that can be passed to the tracer. To use it and cut down 50% of the +// rate sampler that can be passed to the tracer. To use it and keep only 30% of the // requests, one would do: -// s := tracer.NewRateSampler(0.5) +// s := tracer.NewRateSampler(0.3) // tracer.Start(tracer.WithSampler(s)) // // All spans created by the tracer contain a context hereby referred to as the span