I've noticed an opportunity to enhance observability from the broker's perspective.
Firstly, introducing a feature to set a human-friendly connection name would greatly improve the ability to distinguish connections easily.
Secondly, providing additional information in client properties could be useful in identifying issues with applications, such as the application version.
With this pull request, I propose adding two additional configuration options:
connection_name - to set the connection name conveniently. It can be easily controlled with the HUTCH_CONNECTION_NAME environment variable, requiring no explicit configuration.
mq_client_properties - to manage all client properties, including the connection_name.
Before
![Screenshot from 2024-05-06 20-27-51](https://github.com/ruby-amqp/hutch/assets/1262244/b613a168-882a-4a68-9de2-7502c9004789)
![Screenshot from 2024-05-06 20-46-05](https://github.com/ruby-amqp/hutch/assets/1262244/80b8e7ab-d0b7-4dea-9609-a8fa5ac469dc)
After
![Screenshot from 2024-05-06 20-55-33](https://github.com/ruby-amqp/hutch/assets/1262244/a12d4c7e-2c51-43ca-9da8-1d35647b612d)
![Screenshot from 2024-05-06 20-53-58](https://github.com/ruby-amqp/hutch/assets/1262244/2779b7c8-8b66-465e-8687-fc259486bfdc)
Thank you for this project! :heart:
I've noticed an opportunity to enhance observability from the broker's perspective.
Firstly, introducing a feature to set a human-friendly connection name would greatly improve the ability to distinguish connections easily.
Secondly, providing additional information in client properties could be useful in identifying issues with applications, such as the application version.
With this pull request, I propose adding two additional configuration options:
connection_name
- to set the connection name conveniently. It can be easily controlled with theHUTCH_CONNECTION_NAME
environment variable, requiring no explicit configuration.mq_client_properties
- to manage all client properties, including theconnection_name
.Before
![Screenshot from 2024-05-06 20-27-51](https://github.com/ruby-amqp/hutch/assets/1262244/b613a168-882a-4a68-9de2-7502c9004789) ![Screenshot from 2024-05-06 20-46-05](https://github.com/ruby-amqp/hutch/assets/1262244/80b8e7ab-d0b7-4dea-9609-a8fa5ac469dc)After
![Screenshot from 2024-05-06 20-55-33](https://github.com/ruby-amqp/hutch/assets/1262244/a12d4c7e-2c51-43ca-9da8-1d35647b612d) ![Screenshot from 2024-05-06 20-53-58](https://github.com/ruby-amqp/hutch/assets/1262244/2779b7c8-8b66-465e-8687-fc259486bfdc)