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)