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

Replace JAEGER_SAMPLER_MANAGER_HOST_PORT with JAEGER_SAMPLING_ENDPOINT #165

Merged
merged 3 commits into from Mar 4, 2020

Conversation

Falco20019
Copy link
Collaborator

@Falco20019 Falco20019 commented Feb 14, 2020

Which problem is this PR solving?

Short description of the changes

  • JAEGER_SAMPLER_MANAGER_HOST_PORT was changed to JAEGER_SAMPLING_ENDPOINT and contains a base uri now instead of host:port

@Falco20019 Falco20019 added enhancement New feature or request breaking change This issue breaks backwards compatability labels Feb 14, 2020
@Falco20019 Falco20019 added this to the v0.3.7 milestone Feb 14, 2020
@@ -31,15 +39,15 @@ internal SamplingStrategyResponse ParseJson(string json)

public async Task<SamplingStrategyResponse> GetSamplingStrategyAsync(string serviceName)
{
string url = "http://" + _hostPort + "/?service=" + Uri.EscapeDataString(serviceName);
Copy link
Member

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.

Copy link
Collaborator Author

@Falco20019 Falco20019 Mar 2, 2020

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 :)

Copy link
Member

@yurishkuro yurishkuro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@Falco20019 Falco20019 removed the breaking change This issue breaks backwards compatability label Mar 4, 2020
@Falco20019 Falco20019 merged commit b17b37a into master Mar 4, 2020
@Falco20019 Falco20019 deleted the Falco20019/add-JAEGER_SAMPLING_ENDPOINT branch March 4, 2020 09:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RemoteControlledSampler fails when Agent is on a different host from the application
2 participants