diff --git a/scripts/runAcceptanceTestsStreamKafka.sh b/scripts/runAcceptanceTestsStreamKafka.sh index 408ea8c36..d6dd00c1f 100755 --- a/scripts/runAcceptanceTestsStreamKafka.sh +++ b/scripts/runAcceptanceTestsStreamKafka.sh @@ -16,4 +16,4 @@ chmod +x runAcceptanceTests.sh echo "Killing all running apps" ./runAcceptanceTests.sh -t "${AT_WHAT_TO_TEST}" -n -./runAcceptanceTests.sh --kafka --whattotest "${AT_WHAT_TO_TEST}" --killattheend -cli "1.3.0.BUILD-SNAPSHOT" +./runAcceptanceTests.sh --kafka --whattotest "${AT_WHAT_TO_TEST}" --killattheend -cli "1.3.3.BUILD-SNAPSHOT" diff --git a/spring-cloud-sleuth-core/src/main/java/org/springframework/cloud/sleuth/sampler/PercentageBasedSampler.java b/spring-cloud-sleuth-core/src/main/java/org/springframework/cloud/sleuth/sampler/PercentageBasedSampler.java index f742bd091..10ac50815 100644 --- a/spring-cloud-sleuth-core/src/main/java/org/springframework/cloud/sleuth/sampler/PercentageBasedSampler.java +++ b/spring-cloud-sleuth-core/src/main/java/org/springframework/cloud/sleuth/sampler/PercentageBasedSampler.java @@ -1,12 +1,12 @@ package org.springframework.cloud.sleuth.sampler; +import org.springframework.cloud.sleuth.Sampler; +import org.springframework.cloud.sleuth.Span; + import java.util.BitSet; import java.util.Random; import java.util.concurrent.atomic.AtomicInteger; -import org.springframework.cloud.sleuth.Sampler; -import org.springframework.cloud.sleuth.Span; - /** * This sampler is appropriate for low-traffic instrumentation (ex servers that each receive <100K * requests), or those who do not provision random trace ids. It not appropriate for collectors as @@ -39,7 +39,7 @@ public class PercentageBasedSampler implements Sampler { public boolean isSampled(Span currentSpan) { if (this.configuration.getPercentage() == 0 || currentSpan == null) { return false; - } else if (this.configuration.getPercentage() == 100) { + } else if (this.configuration.getPercentage() == 1.0f) { return true; } synchronized (this) {