-
Notifications
You must be signed in to change notification settings - Fork 840
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
Support friendly connection name when connecting #989
Comments
This has been supported since this commit - 5dc90ad |
Great. Sorry I didn't found it in the documentation. Thanks :) Here is an example for anyone stepping here and as lost as I was: parameters = pika.ConnectionParameters(
'amqp.example.com',
5672,
virtual_host='/',
client_properties={
'connection_name': 'My foobar client',
},
)
connection = pika.BlockingConnection(parameters) |
We would be happy to accept a pull request that improves the documentation and examples. Thanks! |
Hello. I want to use |
Okay, figured it out: connection = BlockingConnection(parameters=URLParameters("amqps://user:pass@hostname:5671/?client_properties={"connection_name":"name"}")) |
Since rabbitmq/rabbitmq-server#104, RabbitMQ clients can pass a "friendly connection name" to the server when connecting.
This is not a reliable identifier but is shown in the server's management web interface and can serve for debugging.
Can such feature be implemented in pika?
The text was updated successfully, but these errors were encountered: