Skip to content

Conversation

@ammokhov
Copy link
Contributor

@ammokhov ammokhov commented Sep 17, 2020

Issue #, if available:

Description of changes:

refactoring publishing method: now accepts MetricDatum; metrics by error code are put together in bulk to avoid throttling possibility;

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

@ammokhov ammokhov self-assigned this Sep 17, 2020
@ammokhov ammokhov added the enhancement New feature or request label Sep 17, 2020
@wbingli wbingli self-requested a review September 18, 2020 20:35
Copy link

@wbingli wbingli left a comment

Choose a reason for hiding this comment

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

Look good to me. Is there any test we have verified that moving the metric publish after write the response works?

@ammokhov ammokhov requested a review from wbingli September 18, 2020 21:32
@ammokhov
Copy link
Contributor Author

Look good to me. Is there any test we have verified that moving the metric publish after write the response works?

since write response modifies value by reference it does not really affect metrics publishing unless write response has an issues itself; all the unit tests are passing + tested manually with different valid/invalid templates and all look good

@ammokhov ammokhov merged commit da4a7f3 into aws-cloudformation:master Sep 21, 2020
@ammokhov ammokhov deleted the bulk-metrics branch September 21, 2020 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants