Skip to content

Commit a32bb4e

Browse files
Add destination_name attr to all MessageTransactions (#1425)
* Add destination_name attr to all MessageTransactions * Fixup: remove breakpoint --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 parent 962e08b commit a32bb4e

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

newrelic/api/message_transaction.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def __init__(
5555
self.routing_key = routing_key
5656
self.exchange_type = exchange_type
5757
self.queue_name = queue_name
58+
self.destination_name = destination_name
5859
self.reply_to = reply_to
5960
self.correlation_id = correlation_id
6061

newrelic/hooks/messagebroker_kombu.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ def wrap_consumer_recieve_callback(wrapped, instance, args, kwargs):
194194
source=wrapped,
195195
)
196196
created_transaction.__enter__()
197-
created_transaction.destination_name = destination_name
198197

199198
# Obtain consumer client_id to send up as agent attribute
200199
if hasattr(message, "channel") and hasattr(message.channel, "channel_id"):

0 commit comments

Comments
 (0)