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

Log throttle events #243

Merged
merged 2 commits into from Aug 17, 2021
Merged

Log throttle events #243

merged 2 commits into from Aug 17, 2021

Conversation

jefchien
Copy link
Contributor

Description of the issue

Currently, throttling events handled by the SDK are silent.

Description of changes

Added a custom retryer implementation to log any throttling event.

To prevent high volume of throttling events from flooding the agent log, only reports a throttling when first detected and reports the number of throttling events every subsequent minute.

Debug level log will log every single throttling event.

License

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Tests

Manual end-to-end testing performed along with the addition of the logthrottle_test.go unit test.

@jefchien jefchien requested a review from haojhcwa July 15, 2021 19:12
@jefchien jefchien requested review from ZhenyuTan-amz and removed request for haojhcwa August 17, 2021 14:53
@jefchien jefchien merged commit 26a8d28 into aws:master Aug 17, 2021
@jefchien jefchien deleted the log-throttle-events branch August 17, 2021 18:06
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.

None yet

2 participants