diff --git a/micrometer-core/src/main/java/io/micrometer/core/instrument/MeterRegistry.java b/micrometer-core/src/main/java/io/micrometer/core/instrument/MeterRegistry.java index d532eb4bf2..88d1a4b9af 100644 --- a/micrometer-core/src/main/java/io/micrometer/core/instrument/MeterRegistry.java +++ b/micrometer-core/src/main/java/io/micrometer/core/instrument/MeterRegistry.java @@ -56,7 +56,7 @@ protected MeterRegistry(Clock clock) { this.clock = clock; } - private Map meterMap = Collections.emptyMap(); + private volatile Map meterMap = Collections.emptyMap(); private final List filters = new ArrayList<>(); /**