Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

breaking: updates sampling.NewProxy to be private #93

Merged
merged 1 commit into from
Mar 22, 2019

Conversation

chrisradek
Copy link
Contributor

Description of changes:
Makes NewProxy a private function by changing it to newProxy.

NewProxy is used by the centralized sampler to create an x-ray service client that uses the daemon as a proxy when calling GetSamplingRules and GetSamplingTargets.

Since this is a public method, it's possible that users could be calling this API and relying on the returned values from GetSamplingRules and GetSamplingTargets. Since these APIs return structs from the AWS SDK v1, we could break consumers of the API if we decide to update our centralized sampler to use the AWS SDK v2.

I feel this method doesn't provide enough value to warrant exposing it publicly, given it ties us to continue using the V1 SDK. It's fairly straightforward to create an X-Ray service client that points to the daemon if that's required outside of the SDK.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@luluzhao luluzhao merged commit 9b87712 into aws:master Mar 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants