Skip to content

metrics refactor to publish in bulk - #311

Merged
ammokhov merged 2 commits into
aws-cloudformation:masterfrom
ammokhov:bulk-metrics
Sep 21, 2020
Merged

metrics refactor to publish in bulk#311
ammokhov merged 2 commits into
aws-cloudformation:masterfrom
ammokhov:bulk-metrics

Conversation

@ammokhov

@ammokhovammokhov commented Sep 17, 2020

Copy link
Copy Markdown
Contributor

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.

@ammokhovammokhov self-assigned this Sep 17, 2020
@ammokhovammokhov added the enhancement New feature or request label Sep 17, 2020
Comment threadsrc/main/java/software/amazon/cloudformation/LambdaWrapper.java Outdated
@wbingli
wbingli self-requested a review September 18, 2020 20:35

@wbingliwbingli left a comment

Copy link
Copy Markdown

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

Copy link
Copy Markdown
ContributorAuthor

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:masterSep 21, 2020
@ammokhov
ammokhov deleted the bulk-metrics branch September 21, 2020 22:36
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancementNew feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@ammokhov@wbingli@johnttompkins