Skip to content

Commit aab0f38

Browse files
the-mikedavismkuratczyk
authored andcommitted
Add ra_counters:new/4 wrapping seshat:new/4
1 parent b1d4d07 commit aab0f38

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/ra_counters.erl

+6
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
-export([
1111
init/0,
1212
new/2,
13+
new/3,
1314
fetch/1,
1415
overview/0,
1516
overview/1,
@@ -32,6 +33,11 @@ init() ->
3233
new(Name, FieldsSpec) ->
3334
seshat:new(ra, Name, FieldsSpec).
3435

36+
-spec new(name(), seshat:fields_spec(), seshat:label()) ->
37+
counters:counters_ref().
38+
new(Name, FieldsSpec, Label) ->
39+
seshat:new(ra, Name, FieldsSpec, Label).
40+
3541
-spec fetch(name()) -> undefined | counters:counters_ref().
3642
fetch(Name) ->
3743
seshat:fetch(ra, Name).

0 commit comments

Comments
 (0)