@Test public void metricsCategories_shouldAcceptMultipleValues() { final GlobalConfiguration globalConfiguration = getGlobalConfigurationFromArguments( "--metrics-categories", "LIBP2P,NETWORK,EVENTBUS,PROCESS"); assertThat(globalConfiguration.getMetricsCategories()) .isEqualTo(List.of("LIBP2P", "NETWORK", "EVENTBUS", "PROCESS")); }
public List<String> getMetricsCategories() { return metricsCategories.stream().map(Object::toString).collect(Collectors.toList()); }
MetricsOptions { public List<String> getMetricsCategories() { return metricsCategories.stream().map(Object::toString).collect(Collectors.toList()); } }
MetricsOptions { public List<String> getMetricsCategories() { return metricsCategories.stream().map(Object::toString).collect(Collectors.toList()); }  }
MetricsOptions { public List<String> getMetricsCategories() { return metricsCategories.stream().map(Object::toString).collect(Collectors.toList()); }  boolean isMetricsEnabled(); int getMetricsPort(); String getMetricsInterface(); List<String> getMetricsCategories(); List<String> getMetricsHostAllowlist(); }
MetricsOptions { public List<String> getMetricsCategories() { return metricsCategories.stream().map(Object::toString).collect(Collectors.toList()); }  boolean isMetricsEnabled(); int getMetricsPort(); String getMetricsInterface(); List<String> getMetricsCategories(); List<String> getMetricsHostAllowlist(); static final ImmutableSet<MetricCategory> DEFAULT_METRICS_CATEGORIES; }