Skip to content

Commit 4bc6a52

Browse files
committed
Make global counter compatible with new seshat
We can re-work global counters later. For now, this should be enough for them to keep working and passing tests.
1 parent 3c126f1 commit 4bc6a52

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

deps/rabbit/src/rabbit_global_counters.erl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,15 +183,15 @@ init(Labels) ->
183183

184184
init(Labels = [{protocol, Protocol}, {queue_type, QueueType}], Extra) ->
185185
_ = seshat:new_group(?MODULE),
186-
Counters = seshat:new(?MODULE, Labels, ?PROTOCOL_QUEUE_TYPE_COUNTERS ++ Extra),
186+
Counters = seshat:new(?MODULE, Labels, ?PROTOCOL_QUEUE_TYPE_COUNTERS ++ Extra, Labels),
187187
persistent_term:put({?MODULE, Protocol, QueueType}, Counters);
188188
init(Labels = [{protocol, Protocol}], Extra) ->
189189
_ = seshat:new_group(?MODULE),
190-
Counters = seshat:new(?MODULE, Labels, ?PROTOCOL_COUNTERS ++ Extra),
190+
Counters = seshat:new(?MODULE, Labels, ?PROTOCOL_COUNTERS ++ Extra, Labels),
191191
persistent_term:put({?MODULE, Protocol}, Counters);
192192
init(Labels = [{queue_type, QueueType}, {dead_letter_strategy, DLS}], DeadLetterCounters) ->
193193
_ = seshat:new_group(?MODULE),
194-
Counters = seshat:new(?MODULE, Labels, DeadLetterCounters),
194+
Counters = seshat:new(?MODULE, Labels, DeadLetterCounters, Labels),
195195
persistent_term:put({?MODULE, QueueType, DLS}, Counters).
196196

197197
overview() ->

0 commit comments

Comments
 (0)