Fix spelling error in MetricCategory.getApplicationPrefix method name (#1711)

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
pull/2/head
Adrian Sutton 5 years ago committed by GitHub
parent 3d0b099a53
commit 064ad3a4d4
  1. 2
      metrics/core/src/main/java/tech/pegasys/pantheon/metrics/MetricCategory.java
  2. 2
      metrics/core/src/main/java/tech/pegasys/pantheon/metrics/PantheonMetricCategory.java
  3. 2
      metrics/core/src/main/java/tech/pegasys/pantheon/metrics/StandardMetricCategory.java
  4. 2
      metrics/core/src/main/java/tech/pegasys/pantheon/metrics/prometheus/PrometheusMetricsSystem.java

@ -18,5 +18,5 @@ public interface MetricCategory {
String getName();
Optional<String> getAppliationPrefix();
Optional<String> getApplicationPrefix();
}

@ -64,7 +64,7 @@ public enum PantheonMetricCategory implements MetricCategory {
}
@Override
public Optional<String> getAppliationPrefix() {
public Optional<String> getApplicationPrefix() {
return pantheonSpecific ? PANTHEON_PREFIX : Optional.empty();
}
}

@ -30,7 +30,7 @@ public enum StandardMetricCategory implements MetricCategory {
}
@Override
public Optional<String> getAppliationPrefix() {
public Optional<String> getApplicationPrefix() {
return Optional.empty();
}
}

@ -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() {

Loading…
Cancel
Save