com.ringcentral.platform.metrics.spring.MetricsFacadeSpringBootSampleApp Maven / Gradle / Ivy
package com.ringcentral.platform.metrics.spring;
import io.micrometer.core.aop.TimedAspect;
import io.micrometer.core.instrument.MeterRegistry;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
@SpringBootApplication
public class MetricsFacadeSpringBootSampleApp {
public static void main(String[] args) {
SpringApplication.run(MetricsFacadeSpringBootSampleApp.class, args);
}
@Bean
public TimedAspect timedAspect(MeterRegistry registry) {
return new TimedAspect(registry);
}
}