From d410d8ae15b819db82cc282f23ff74d692871009 Mon Sep 17 00:00:00 2001 From: Michael Klishin Date: Mon, 23 Jun 2014 17:37:21 +0400 Subject: [PATCH] Include connection, vhost, user, and channel into JSON-formatted trace messages --- deps/rabbitmq_tracing/src/rabbit_tracing_consumer.erl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deps/rabbitmq_tracing/src/rabbit_tracing_consumer.erl b/deps/rabbitmq_tracing/src/rabbit_tracing_consumer.erl index 4dfb0cb9ea..09d28e829d 100644 --- a/deps/rabbitmq_tracing/src/rabbit_tracing_consumer.erl +++ b/deps/rabbitmq_tracing/src/rabbit_tracing_consumer.erl @@ -173,6 +173,10 @@ log(json, P, Record) -> [{timestamp, Record#log_record.timestamp}, {type, Record#log_record.type}, {node, Record#log_record.node}, + {connection, Record#log_record.connection}, + {vhost, Record#log_record.vhost}, + {user, Record#log_record.username}, + {channel, Record#log_record.channel}, {exchange, Record#log_record.exchange}, {queue, Record#log_record.queue}, {routing_keys, Record#log_record.routing_keys},