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

Commit b083108

Browse files
JorritSalverdayurishkuro
authored andcommitted
Update default samplingServerURL to include /sampling path (#158)
* Update default samplingServerURL to include /sampling path Fixes issue #157 Signed-off-by: Jorrit Salverda <[email protected]> * Improve test for default sampling server url By asserting against a static string the test will fail if the value changes, while otherwise it would not Signed-off-by: Jorrit Salverda <[email protected]>
1 parent 68be4e2 commit b083108

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ NOTE: It is not recommended to use a remote host for UDP connections.
6868
6969
### Updating Sampling Server URL
7070
71-
The default sampling collector URL is `http://127.0.0.1:5778`. Similar to UDP address above, you can use a different URL by updating the sampler configuration.
71+
The default sampling collector URL is `http://127.0.0.1:5778/sampling`. Similar to UDP address above, you can use a different URL by updating the sampler configuration.
7272

7373
```yml
7474
sampler:

src/jaegertracing/ConfigTest.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ TEST(Config, testDefaultSamplingProbability)
7373
Config().sampler().param());
7474
}
7575

76+
TEST(Config, testDefaultSamplingServerURL)
77+
{
78+
ASSERT_EQ("http://127.0.0.1:5778/sampling",
79+
Config().sampler().samplingServerURL());
80+
}
81+
7682
TEST(Config, testZeroSamplingParam)
7783
{
7884
{

src/jaegertracing/samplers/Config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Config {
4242

4343
static constexpr auto kDefaultSamplingProbability =
4444
static_cast<double>(0.001);
45-
static constexpr auto kDefaultSamplingServerURL = "http://127.0.0.1:5778";
45+
static constexpr auto kDefaultSamplingServerURL = "http://127.0.0.1:5778/sampling";
4646
static constexpr auto kDefaultMaxOperations = 2000;
4747

4848
static Clock::duration defaultSamplingRefreshInterval()

0 commit comments

Comments
 (0)