Skip to content

Commit

Permalink
Set the product name and version for AMQP connections issue #1371
Browse files Browse the repository at this point in the history
  • Loading branch information
reidsunderland committed Jan 22, 2025
1 parent 117e92a commit e2f616f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sarracenia/moth/amqp.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,11 @@ def __connect(self, broker) -> bool:
broker.url.password),
login_method=broker.login_method,
virtual_host=vhost,
ssl=(broker.url.scheme[-1] == 's'))
ssl=(broker.url.scheme[-1] == 's'),
client_properties={'product':'MetPX Sarracenia (sr3)',
'product_version':sarracenia.__version__,
}
)
self.connection_id = str(uuid.uuid4()) + ("_sub" if self.is_subscriber else "_pub")
self.broker = host + '/' + vhost
if hasattr(self.connection, 'connect'):
Expand Down

0 comments on commit e2f616f

Please sign in to comment.