Skip to content

Commit

Permalink
Fix issue in configuring metricsEnabledDimensions (#1258)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucienlu-aws authored Feb 20, 2024
1 parent fb6ab3f commit 2d76973
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

package software.amazon.kinesis.metrics;

import java.util.HashSet;
import java.util.Set;

import com.google.common.collect.ImmutableSet;
Expand Down Expand Up @@ -94,7 +95,7 @@ public class MetricsConfig {
* Default value: {@link MetricsConfig#METRICS_DIMENSIONS_ALL}
* </p>
*/
private Set<String> metricsEnabledDimensions = METRICS_DIMENSIONS_ALL;
private HashSet<String> metricsEnabledDimensions = new HashSet<String>(METRICS_DIMENSIONS_ALL);

/**
* Buffer size for MetricDatums before publishing.
Expand Down

0 comments on commit 2d76973

Please sign in to comment.