fix(prom): missing callback attribute

This commit is contained in:
JimMoen 2024-01-23 09:50:01 +08:00
parent 947a08d1d2
commit 497ec04359
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -90,8 +90,6 @@
-define(HTTP_OPTIONS, [{autoredirect, true}, {timeout, 60000}]). -define(HTTP_OPTIONS, [{autoredirect, true}, {timeout, 60000}]).
-define(LOGICAL_SUM_METRIC_NAMES, []).
%%-------------------------------------------------------------------- %%--------------------------------------------------------------------
%% APIs %% APIs
%%-------------------------------------------------------------------- %%--------------------------------------------------------------------
@ -280,7 +278,7 @@ aggre_or_zip_init_acc() ->
}. }.
logic_sum_metrics() -> logic_sum_metrics() ->
?LOGICAL_SUM_METRIC_NAMES. [].
%%-------------------------------------------------------------------- %%--------------------------------------------------------------------
%% Collector %% Collector

View File

@ -38,6 +38,8 @@
-callback aggre_or_zip_init_acc() -> map(). -callback aggre_or_zip_init_acc() -> map().
-callback logic_sum_metrics() -> list().
-define(MG(K, MAP), maps:get(K, MAP)). -define(MG(K, MAP), maps:get(K, MAP)).
-define(PG0(K, PROPLISTS), proplists:get_value(K, PROPLISTS, 0)). -define(PG0(K, PROPLISTS), proplists:get_value(K, PROPLISTS, 0)).