From 064ad3a4d49362eadce6e57e8e1c4d3925fea4c7 Mon Sep 17 00:00:00 2001 From: Adrian Sutton Date: Wed, 17 Jul 2019 14:30:41 +1000 Subject: [PATCH] Fix spelling error in MetricCategory.getApplicationPrefix method name (#1711) Signed-off-by: Adrian Sutton --- .../main/java/tech/pegasys/pantheon/metrics/MetricCategory.java | 2 +- .../tech/pegasys/pantheon/metrics/PantheonMetricCategory.java | 2 +- .../tech/pegasys/pantheon/metrics/StandardMetricCategory.java | 2 +- .../pantheon/metrics/prometheus/PrometheusMetricsSystem.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/metrics/core/src/main/java/tech/pegasys/pantheon/metrics/MetricCategory.java b/metrics/core/src/main/java/tech/pegasys/pantheon/metrics/MetricCategory.java index 6f6de531f8..f5b0db30d6 100644 --- a/metrics/core/src/main/java/tech/pegasys/pantheon/metrics/MetricCategory.java +++ b/metrics/core/src/main/java/tech/pegasys/pantheon/metrics/MetricCategory.java @@ -18,5 +18,5 @@ public interface MetricCategory { String getName(); - Optional getAppliationPrefix(); + Optional getApplicationPrefix(); } diff --git a/metrics/core/src/main/java/tech/pegasys/pantheon/metrics/PantheonMetricCategory.java b/metrics/core/src/main/java/tech/pegasys/pantheon/metrics/PantheonMetricCategory.java index a5c06657b9..6b54cd1b7b 100644 --- a/metrics/core/src/main/java/tech/pegasys/pantheon/metrics/PantheonMetricCategory.java +++ b/metrics/core/src/main/java/tech/pegasys/pantheon/metrics/PantheonMetricCategory.java @@ -64,7 +64,7 @@ public enum PantheonMetricCategory implements MetricCategory { } @Override - public Optional getAppliationPrefix() { + public Optional getApplicationPrefix() { return pantheonSpecific ? PANTHEON_PREFIX : Optional.empty(); } } diff --git a/metrics/core/src/main/java/tech/pegasys/pantheon/metrics/StandardMetricCategory.java b/metrics/core/src/main/java/tech/pegasys/pantheon/metrics/StandardMetricCategory.java index 76e8fcdc47..b4c76e6052 100644 --- a/metrics/core/src/main/java/tech/pegasys/pantheon/metrics/StandardMetricCategory.java +++ b/metrics/core/src/main/java/tech/pegasys/pantheon/metrics/StandardMetricCategory.java @@ -30,7 +30,7 @@ public enum StandardMetricCategory implements MetricCategory { } @Override - public Optional getAppliationPrefix() { + public Optional getApplicationPrefix() { return Optional.empty(); } } diff --git a/metrics/core/src/main/java/tech/pegasys/pantheon/metrics/prometheus/PrometheusMetricsSystem.java b/metrics/core/src/main/java/tech/pegasys/pantheon/metrics/prometheus/PrometheusMetricsSystem.java index c8d300fb7e..cc40a1e6dc 100644 --- a/metrics/core/src/main/java/tech/pegasys/pantheon/metrics/prometheus/PrometheusMetricsSystem.java +++ b/metrics/core/src/main/java/tech/pegasys/pantheon/metrics/prometheus/PrometheusMetricsSystem.java @@ -241,7 +241,7 @@ public class PrometheusMetricsSystem implements MetricsSystem { } private String prometheusPrefix(final MetricCategory category) { - return category.getAppliationPrefix().orElse("") + category.getName() + "_"; + return category.getApplicationPrefix().orElse("") + category.getName() + "_"; } CollectorRegistry getRegistry() {