From ec3a94b8c5733f933962f548cf9418b3cb8dcb04 Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Thu, 27 Oct 2016 14:06:28 +0200 Subject: [PATCH] Updated docs with percentage information without this change the percentage value might have been set to over 1.0 with this change we explain what are the valid values and what are the reasons for keeping the value as it is fixes #397 --- docs/src/main/asciidoc/spring-cloud-sleuth.adoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/src/main/asciidoc/spring-cloud-sleuth.adoc b/docs/src/main/asciidoc/spring-cloud-sleuth.adoc index 84bb0b7db..0b2d00f1a 100644 --- a/docs/src/main/asciidoc/spring-cloud-sleuth.adoc +++ b/docs/src/main/asciidoc/spring-cloud-sleuth.adoc @@ -38,7 +38,9 @@ fixed fraction of spans. NOTE: the `PercentageBasedSampler` is the default if you are using `spring-cloud-sleuth-zipkin` or `spring-cloud-sleuth-stream`. You can -configure the exports using `spring.sleuth.sampler.percentage`. +configure the exports using `spring.sleuth.sampler.percentage`. The passed +value needs to be a double from `0.0` to `1.0` so it's not a percentage. +For backwards compatibility reasons we're not changing the property name. A sampler can be installed just by creating a bean definition, e.g: