commit | bde2005f5e818696238135926b3389817233ba96 | [log] [tgz] |
---|---|---|
author | Romain Manni-Bucau <rmannibucau@gmail.com> | Tue Jul 21 17:28:10 2020 +0200 |
committer | Romain Manni-Bucau <rmannibucau@gmail.com> | Tue Jul 21 17:28:10 2020 +0200 |
tree | c8ccd3aa53813ca9d062c1fcb1c74d8a3fb2aba5 | |
parent | e3d45c1b49efd6674ca4b169a4af9fd067569ba9 [diff] |
[GERONIMO-6779] ensure MetricRegistry.gauge set the metric type as expected
diff --git a/geronimo-metrics-common/src/main/java/org/apache/geronimo/microprofile/metrics/common/RegistryImpl.java b/geronimo-metrics-common/src/main/java/org/apache/geronimo/microprofile/metrics/common/RegistryImpl.java index 1e46b77..9aa2d29 100644 --- a/geronimo-metrics-common/src/main/java/org/apache/geronimo/microprofile/metrics/common/RegistryImpl.java +++ b/geronimo-metrics-common/src/main/java/org/apache/geronimo/microprofile/metrics/common/RegistryImpl.java
@@ -198,7 +198,7 @@ @Override public Gauge<?> gauge(final String name, final Gauge<?> gauge, final Tag...tags) { - return register(Metadata.builder().reusable().withName(name).build(), gauge, tags); + return register(Metadata.builder().reusable().withName(name).withType(MetricType.GAUGE).build(), gauge, tags); } @Override