use of org.springframework.amqp.rabbit.connection.AbstractConnectionFactory in project spring-boot by spring-projects.
the class RabbitConnectionFactoryMetricsPostProcessor method bindConnectionFactoryToRegistry.
private void bindConnectionFactoryToRegistry(MeterRegistry registry, String beanName, AbstractConnectionFactory connectionFactory) {
ConnectionFactory rabbitConnectionFactory = connectionFactory.getRabbitConnectionFactory();
String connectionFactoryName = getConnectionFactoryName(beanName);
new RabbitMetrics(rabbitConnectionFactory, Tags.of("name", connectionFactoryName)).bindTo(registry);
}
Aggregations