-
Notifications
You must be signed in to change notification settings - Fork 67
Replace JAEGER_SAMPLER_MANAGER_HOST_PORT with JAEGER_SAMPLING_ENDPOINT #165
Conversation
@@ -31,15 +39,15 @@ internal SamplingStrategyResponse ParseJson(string json) | |||
|
|||
public async Task<SamplingStrategyResponse> GetSamplingStrategyAsync(string serviceName) | |||
{ | |||
string url = "http://" + _hostPort + "/?service=" + Uri.EscapeDataString(serviceName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting, this wasn't using the /sampling
endpoint previously? The results from /
endpoint are using legacy Thrift-to-JSON conversion that used numbers for enums, instead of strings. Have you tested this change with an agent? I don't think crossdock tests cover the sampling endpoint.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked the code again. The enum is not checked at all, therefore it's not making problems. C# is deserializing the following data structure as property. So it's looking for the field names instead of the enum. But I will adjust the test cases to make sure this reflects the real situation.
If there are no more open points, please approve :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
Which problem is this PR solving?
Short description of the changes