use of org.apache.catalina.Manager in project spring-boot by spring-projects.
the class TomcatMetricsBinder method onApplicationEvent.
@Override
public void onApplicationEvent(ApplicationStartedEvent event) {
ApplicationContext applicationContext = event.getApplicationContext();
Manager manager = findManager(applicationContext);
this.tomcatMetrics = new TomcatMetrics(manager, this.tags);
this.tomcatMetrics.bindTo(this.meterRegistry);
}
Aggregations