Skip to content

Commit 24c4a66

Browse files
committed
Add OTP version to server properties during connection negotiation
I wanted to know which Erlang & RabbitMQ version I am benchmarking against. Whilst RabbitMQ version was already exposed via server properties, Erlang version wasn't. Since otp_release/0 is in rabbit_misc, it felt natural to add this functionality there, especially since testing it via rabbit_reader felt awkward.
1 parent 004710e commit 24c4a66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rabbit_reader.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ server_properties(Protocol) ->
283283
[{product, Product},
284284
{version, Version},
285285
{cluster_name, rabbit_nodes:cluster_name()},
286-
{platform, "Erlang/OTP"},
286+
{platform, rabbit_misc:platform_and_version()},
287287
{copyright, ?COPYRIGHT_MESSAGE},
288288
{information, ?INFORMATION_MESSAGE}]]],
289289

0 commit comments

Comments
 (0)