Skip to content

Commit

Permalink
Add ra_counters:new/4 wrapping seshat:new/4
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mikedavis committed Sep 4, 2024
1 parent 7e4ea4f commit c087c3b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ra_counters.erl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
-export([
init/0,
new/2,
new/3,
fetch/1,
overview/0,
overview/1,
Expand All @@ -32,6 +33,11 @@ init() ->
new(Name, FieldsSpec) ->
seshat:new(ra, Name, FieldsSpec).

-spec new(name(), seshat:fields_spec(), seshat:label()) ->
counters:counters_ref().
new(Name, FieldsSpec, Label) ->
seshat:new(ra, Name, FieldsSpec, Label).

-spec fetch(name()) -> undefined | counters:counters_ref().
fetch(Name) ->
seshat:fetch(ra, Name).
Expand Down

0 comments on commit c087c3b

Please sign in to comment.