fix(metrics): fix authn metrics count clause error
This commit is contained in:
parent
9ea28cf093
commit
9170a05990
|
@ -226,14 +226,15 @@ authenticate(#{listener := Listener, protocol := Protocol} = Credential, _AuthRe
|
||||||
ignore;
|
ignore;
|
||||||
NAuthenticators ->
|
NAuthenticators ->
|
||||||
Result = do_authenticate(ChainName, NAuthenticators, Credential),
|
Result = do_authenticate(ChainName, NAuthenticators, Credential),
|
||||||
inc_authenticate_metric(
|
|
||||||
case Result of
|
case Result of
|
||||||
{stop, {ok, _}} ->
|
{stop, {ok, _}} ->
|
||||||
'authentication.success';
|
inc_authenticate_metric('authentication.success');
|
||||||
_ ->
|
{stop, {error, _}} ->
|
||||||
'authentication.failure'
|
inc_authenticate_metric('authentication.failure');
|
||||||
end
|
_ ->
|
||||||
),
|
ok
|
||||||
|
end,
|
||||||
Result
|
Result
|
||||||
end;
|
end;
|
||||||
none ->
|
none ->
|
||||||
|
|
Loading…
Reference in New Issue