You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When flushPreserveDimensions is true, the context will disable default dimensions after the first flush.
Reproduction
MetricsLoggerlogger = newMetricsLogger(environment);
logger.putMetric("Example", 100);
logger.flush();
logger.putMetric("Example", 200);
logger.flush(); // This logger will not contain any default dimensions
Cause
Context copy uses setDimensions() to copy custom dimensions which disables default dimensions.
Issue
When
flushPreserveDimensions
is true, the context will disable default dimensions after the first flush.Reproduction
Cause
Context copy uses
setDimensions()
to copy custom dimensions which disables default dimensions.aws-embedded-metrics-java/src/main/java/software/amazon/cloudwatchlogs/emf/model/MetricDirective.java
Line 171 in ac3e84c
The text was updated successfully, but these errors were encountered: