Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Commit

Permalink
Change sampler param sentinel value
Browse files Browse the repository at this point in the history
Signed-off-by: andremarianiello <andremarianiello@users.noreply.github.com>
  • Loading branch information
andremarianiello authored and Andre Marianiello committed Dec 26, 2018
1 parent cefa941 commit ff9cdc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jaegertracing/samplers/Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class Config {
const auto type =
utils::yaml::findOrDefault<std::string>(configYAML, "type", "");
const auto param =
utils::yaml::findOrDefault<double>(configYAML, "param", 0);
utils::yaml::findOrDefault<double>(configYAML, "param", -1);
const auto samplingServerURL = utils::yaml::findOrDefault<std::string>(
configYAML, "samplingServerURL", "");
const auto maxOperations =
Expand All @@ -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)
Expand Down

0 comments on commit ff9cdc2

Please sign in to comment.