@Test public void testMetricSetAnnotations() { Map<String, Metric> metrics = new TestLambdaMetricSet().getMetrics(); assertThat(metrics.get("io.symphonia.lambda.metrics.LambdaMetricSetTest.TestLambdaMetricSet/fooCounter"), instanceOf(Counter.class)); assertThat(metrics.get("io.symphonia.lambda.metrics.LambdaMetricSetTest.TestLambdaMetricSet/myBarCounter"), instanceOf(Counter.class)); assertThat(metrics.get("test.namespace/bazCounter"), instanceOf(Counter.class)); assertThat(metrics.get("test.namespace/myBingCounter"), instanceOf(Counter.class)); assertThat(new NamespaceTestLambdaMetricSet().getMetrics().get("test.namespace/fooCounter"), instanceOf(Counter.class)); }
@Override public Map<String, Metric> getMetrics() { metrics.putAll(MetricsUtils.findAnnotatedMetrics(this)); return Collections.unmodifiableMap(metrics); }
LambdaMetricSet implements MetricSet { @Override public Map<String, Metric> getMetrics() { metrics.putAll(MetricsUtils.findAnnotatedMetrics(this)); return Collections.unmodifiableMap(metrics); } }
LambdaMetricSet implements MetricSet { @Override public Map<String, Metric> getMetrics() { metrics.putAll(MetricsUtils.findAnnotatedMetrics(this)); return Collections.unmodifiableMap(metrics); }  }
LambdaMetricSet implements MetricSet { @Override public Map<String, Metric> getMetrics() { metrics.putAll(MetricsUtils.findAnnotatedMetrics(this)); return Collections.unmodifiableMap(metrics); }  @Override Map<String, Metric> getMetrics(); void report(); void report(Logger logger); }
LambdaMetricSet implements MetricSet { @Override public Map<String, Metric> getMetrics() { metrics.putAll(MetricsUtils.findAnnotatedMetrics(this)); return Collections.unmodifiableMap(metrics); }  @Override Map<String, Metric> getMetrics(); void report(); void report(Logger logger); public Gauge JVM_UPTIME; public String JVM_VENDOR; public String JVM_NAME; }