Skip to content

Commit acb211a

Browse files
committed
Make rabbit_global_counters:overview/0 generally available
Previously it was only available when TEST=1 was set.
1 parent c0e1ea1 commit acb211a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

deps/rabbit/src/rabbit_global_counters.erl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
boot_step/0,
1414
init/1,
1515
init/2,
16+
overview/0,
1617
prometheus_format/0,
1718
increase_protocol_counter/3,
1819
messages_received/2,
@@ -37,10 +38,6 @@
3738
messages_dead_lettered_confirmed/3
3839
]).
3940

40-
-ifdef(TEST).
41-
-export([overview/0]).
42-
-endif.
43-
4441
%% PROTOCOL COUNTERS:
4542
-define(MESSAGES_RECEIVED, 1).
4643
-define(MESSAGES_RECEIVED_CONFIRM, 2).
@@ -197,10 +194,8 @@ init(Labels = [{queue_type, QueueType}, {dead_letter_strategy, DLS}], DeadLetter
197194
Counters = seshat:new(?MODULE, Labels, DeadLetterCounters),
198195
persistent_term:put({?MODULE, QueueType, DLS}, Counters).
199196

200-
-ifdef(TEST).
201197
overview() ->
202198
seshat:overview(?MODULE).
203-
-endif.
204199

205200
prometheus_format() ->
206201
seshat:format(?MODULE).

0 commit comments

Comments
 (0)