Skip to content

Conversation

@ammokhov
Copy link
Contributor

Issue #, if available:

Description of changes:

a follow up for the previous pr #298 => adding 0 values for the codes that did not cause exception

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

@ammokhov ammokhov requested a review from wbingli August 21, 2020 06:48
.forEach(errorCode -> this.metricsPublisherProxy.publishExceptionByErrorCodeMetric(Instant.now(), action,
errorCode, thrown));
EnumSet.allOf(HandlerErrorCode.class).forEach(errorCode -> this.metricsPublisherProxy
.publishExceptionByErrorCodeMetric(Instant.now(), action, errorCode, thrown && errorCode == handlerErrorCode));
Copy link

Choose a reason for hiding this comment

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

We should publish all those ErrorCode metrics in one PutMetric call, which can support multiple metrics in one request.. Otherwise it will consume large number of TPS, and may cause throttling.

@ammokhov ammokhov merged commit 5e20615 into aws-cloudformation:master Aug 21, 2020
@ammokhov ammokhov deleted the cw-metrics-fix branch August 21, 2020 18:28
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.

3 participants