180181182183184185186
@Bean public PublicMetrics codahalePublicMetrics(MetricRegistry metricRegistry) { MetricRegistryMetricReader reader = new MetricRegistryMetricReader( metricRegistry); return new MetricReaderPublicMetrics(reader); }
63646566676869
return new SystemPublicMetrics(); } @Bean public MetricReaderPublicMetrics metricReaderPublicMetrics() { return new MetricReaderPublicMetrics(this.metricReader); }