-
Notifications
You must be signed in to change notification settings - Fork 41.1k
RabbitMetricsAutoConfiguration is instantiated too late #12855
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@mzakes Can you share a sample that we can run ourselves that demonstrates what you mean by "too late"? |
/cc @jkschneider |
I am not sure I understand that statement, nor the |
Alright so that |
Hi,
Micrometer metrics for RabbitMQ are instantiated too late which leads that metrics are never updated. Instead a
NoOpMetricsCollector
is used and it's methods are invoked. It seems that rabbitmq connection is created before incom.rabbitmq.client.ConnectionFactory
.Workaround that works for me now is to create a RabbitMQConfiguration class with:
spring-boot:
2.0.1.RELEASE
The text was updated successfully, but these errors were encountered: