mirror of
https://github.com/valitydev/bender.git
synced 2024-11-06 00:55:20 +00:00
MSPF-499: Bump to rbkmoney/erlang-health@c190cb8 (#14)
Enable healthcheck logging
This commit is contained in:
parent
a700a00854
commit
09b71d1ed0
@ -138,6 +138,16 @@ get_routes() ->
|
||||
}
|
||||
}}
|
||||
],
|
||||
HealthCheckers = genlib_app:env(?MODULE, health_checkers, []),
|
||||
[erl_health_handle:get_route(HealthCheckers) |
|
||||
Check = enable_health_logging(genlib_app:env(?MODULE, health_check, #{})),
|
||||
[erl_health_handle:get_route(Check) |
|
||||
machinery_mg_backend:get_routes(Handlers, RouteOpts)].
|
||||
|
||||
-spec enable_health_logging(erl_health:check()) ->
|
||||
erl_health:check().
|
||||
|
||||
enable_health_logging(Check) ->
|
||||
EvHandler = {erl_health_event_handler, []},
|
||||
maps:map(
|
||||
fun (_, Runner) -> #{runner => Runner, event_handler => EvHandler} end,
|
||||
Check
|
||||
).
|
||||
|
@ -14,7 +14,7 @@
|
||||
{<<"cowlib">>,{pkg,<<"cowlib">>,<<"2.6.0">>},2},
|
||||
{<<"erl_health">>,
|
||||
{git,"https://github.com/rbkmoney/erlang-health.git",
|
||||
{ref,"2575c7b63d82a92de54d2d27e504413675e64811"}},
|
||||
{ref,"c190cb8de0359b933a27cd20ddc74180c0e5f5c4"}},
|
||||
0},
|
||||
{<<"folsom">>,
|
||||
{git,"git@github.com:folsom-project/folsom.git",
|
||||
|
Loading…
Reference in New Issue
Block a user