-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Resource xray sampling rules #8535
Resource xray sampling rules #8535
Conversation
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.
Hi @dedoussis 👋 Thanks for submitting this, despite the comment count its in pretty good shape! Initial feedback below -- please let us know if you have any questions or do not have time to implement these items.
One important note about adding new services, the vendoring should be included in a separate PR as noted in the contributing guide. Rebasing this pull request on master and running go mod vendor
shows the xray
SDK client is out of date already.
Thanks for reviewing this @bflad ! 😃 Regarding the vendoring, I do get that SDKs can get outdated but do not understand how a separate PR solves this. |
Required: true, | ||
ValidateFunc: validation.IntBetween(1, 9999), | ||
}, | ||
"fixed_rate": { |
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.
@bflad Do you think this would require a custom validator as the validation helper does not support anything along the lines of FloatBetween
?
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.
It appears there are two upstream PRs for adding FloatBetween
to the helper/validation
package upstream:
I cannot imagine there is a specific reason why one of these is not merged, so I will followup with those maintainers to make sure the new validation function gets in. We are likely pulling in a newer version of the upstream dependency later this week anyways as part of some Terraform 0.12 work, so this problem might resolve itself shortly. I would suggest omitting any changes in this regard for now.
The maintainers generally prioritize merging vendoring changes before other code reviews as they are a fast moving target with how often the AWS Go SDK is released. If the AWS Go SDK for one service is out of sync version-wise with the rest of the services, it will show as unexpected changes the next time vendoring occurs. Since the AWS Go SDK is generally additive usually this is not a problem, but there have been rare cases in the past where that did not hold. Separating the SDK client addition, e.g. as #8512 did for Once Go Module caching becomes more publicly stable and we feel comfortable removing the vendoring, this will no longer be a problem. 👍 |
@bflad Have addressed all of your comments. 😺 |
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.
This looks great, @dedoussis, thanks so much for your contribution! 🚀 I will add the go mod vendor
commit when merging this pull request so you don't need to worry about that little detail. 😄
Output from acceptance testing:
--- PASS: TestAccAWSXraySamplingRule_basic (10.06s)
--- PASS: TestAccAWSXraySamplingRule_update (15.27s)
This has been released in version 2.10.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Fixes #7028
Release note for CHANGELOG:
Output from acceptance testing:
References
https://docs.aws.amazon.com/xray/latest/devguide/xray-api-sampling.html