Skip to content

Make it easier to detect blocked connections #1415

Answered by acogoluegnes
jjank asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Note to self: I should not have mentioned the JMS aspect

On the contrary, I think it's the correct way to approach the problem. The AMQP client library has everything you need…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@jjank
Comment options

@acogoluegnes
Comment options

@jjank
Comment options

@acogoluegnes
Comment options

Answer selected by jjank
@jjank
Comment options

@acogoluegnes
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #1412 on September 11, 2024 07:01.