From a92304a97bae0fdafcc726b02354ed154c4bf7be Mon Sep 17 00:00:00 2001 From: Andre Marianiello Date: Wed, 26 Dec 2018 12:17:29 -0500 Subject: [PATCH] Change sampler param sentinel value --- src/jaegertracing/samplers/Config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jaegertracing/samplers/Config.h b/src/jaegertracing/samplers/Config.h index 3fe55c79..442b80f9 100644 --- a/src/jaegertracing/samplers/Config.h +++ b/src/jaegertracing/samplers/Config.h @@ -61,7 +61,7 @@ class Config { const auto type = utils::yaml::findOrDefault(configYAML, "type", ""); const auto param = - utils::yaml::findOrDefault(configYAML, "param", 0); + utils::yaml::findOrDefault(configYAML, "param", -1); const auto samplingServerURL = utils::yaml::findOrDefault( configYAML, "samplingServerURL", ""); const auto maxOperations = @@ -86,7 +86,7 @@ class Config { const Clock::duration& samplingRefreshInterval = defaultSamplingRefreshInterval()) : _type(type.empty() ? kSamplerTypeRemote : type) - , _param(param == 0 ? kDefaultSamplingProbability : param) + , _param(param == -1 ? kDefaultSamplingProbability : param) , _samplingServerURL(samplingServerURL.empty() ? kDefaultSamplingServerURL : samplingServerURL)