Make it easier to detect blocked connections #1415
-
Is your feature request related to a problem? Please describe.TL;DR: Detecting blocked connections can be quite tricky when you don't have access to the broker
Describe the solution you'd like
Describe alternatives you've consideredAdditional context |
Beta Was this translation helpful? Give feedback.
Answered by
acogoluegnes
Sep 11, 2024
Replies: 1 comment 6 replies
-
I think this belongs to the JMS client library: the AMQP 091 client library provides methods to deal with The JMS client provides a callback for the AMQP |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You are right, that's a good way to a metric like this one.
Still, I am not convinced this is a metric worth having in the core of the library (we never had any request for it in 8 years, you are the first one to ask).
If you want to have a metric for blocked connections in your application, you just need to create the metric in your Micrometer registry and update it in a
BlockedListener
. I think the library provides the appropriate extension point and extensibility to reach this goal, without having to modify it.On the contrary, I think it's the correct way to approach the problem. The AMQP client library has everything you need…