-
Notifications
You must be signed in to change notification settings - Fork 127
Update default samplingServerURL to include /sampling path #158
Update default samplingServerURL to include /sampling path #158
Conversation
Fixes issue jaegertracing#157 Signed-off-by: Jorrit Salverda <jorrit.salverda@gmail.com>
By asserting against a static string the test will fail if the value changes, while otherwise it would not Signed-off-by: Jorrit Salverda <jsalverda@travix.com>
I have no experience writing C++, so let me know if I do something unusual for the language. Although there's hardly any coding involved :) |
Have you tested it against Jaeger server? I don't think the |
hi can we get this merged ? |
I would like to see some proof of testing with the agent. |
@yurishkuro , there is a difference between |
The difference is not in the semantics of the response but in the format of the data, how the thrift enums were encoded into json (numbers instead of strings). |
@yurishkuro Is this fix going to be merged at some point? During our debugging using the 0.5.0 jaeger-client-cpp, we observe exactly what @JorritSalverda described in #157: Using
which results in the client hitting the exception at line 1352 of include/nlohmann/json.hpp (v3.6.1):
Whereas using
No exception occurs and the JSON is parsed and the sampling rate updated properly. Based on the |
@skwiffhub are you able to test with the fix in this PR and confirm that it works? |
✅ Build jaeger-client-cpp 31 completed (commit 24ba8de49e by @yurishkuro) |
@yurishkuro Yes, thanks, we were able to test with the fix. We did not verify the One other thing to check for is sample instances of |
@skwiffhub thanks for the confirmation, I will merge it. I am not too concerned with config test because it actually has a unit test, but there's no integration test with the real agent. |
Thanks for the PR, @JorritSalverda |
Is this going to be released soon ? @yurishkuro |
any update on this @yurishkuro @JorritSalverda |
Resolves #157
Signed-off-by: Jorrit Salverda jorrit.salverda@gmail.com
Which problem is this PR solving?
The default sampling server url misses the /sampling path, which leads to an incorrect response and inability to use remote configuration.
Short description of the changes
Updated the default url and added a test.