cloudamqp / amqproxy

An intelligent AMQP proxy, with connection and channel pooling/reusing
https://www.cloudamqp.com
MIT License
354 stars 54 forks source link

Allow overriding `connection_name` with a different value #187

Closed mrtus closed 4 days ago

mrtus commented 1 week ago

👋

We'd like to have the ability to configure a connection name through an environment variable.

This way we can easily identify the connections with e.g. the K8S pod name. Currently, it is configured so that it is AMQProxy + version https://github.com/cloudamqp/amqproxy/blob/main/src/amqproxy/upstream.cr#L235 and is thus displayed as 👇, which does not help us a lot to identify where the actual connection is coming from, without having to match IP addresses image

carlhoerberg commented 1 week ago

ok! good suggestion!