This repository has been archived by the owner on Jul 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 155
Remote sampler always fails to refresh #171
Comments
nziebart
changed the title
Remote sampler is broken
Remote sampler always fails to refresh
May 3, 2018
Thanks for reporting, may I ask which version of jaeger-client and jaeger you are using? |
Actually, nvm, i'll take a look. It's surprising we haven't had anyone internally report this issue yet. I swear I had a test for this... |
This is jaeger-agent |
It doesn't cause any runtime failures, so if the default rate of |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Requirement - what kind of business use case are you trying to solve?
The remote sampler fails to refresh and always uses the default sampler
Problem - what in Jaeger blocks you from solving the requirement?
It looks like there are two sampling endpoints on
jaeger-agent
:/sampling
and/
.The former returns the strategy as a string (e.g.
{"strategyType":"PROBABILISTIC"}
), whereas the latter returns it as an integer (e.g.{"strategyType":0}
)The python client appears to be expecting the integer version, but it is querying the
/sampling
endpoint. This causes the following error when refreshing the sampling strategy:Proposal - what do you suggest to solve the problem or improve the existing situation?
We should use string constants for comparison here: https://github.com/jaegertracing/jaeger-client-python/blob/master/jaeger_client/sampler.py#L452
Any open questions to address
The text was updated successfully, but these errors were encountered: