Skip to content

Commit 677c456

Browse files
committed
Update
1 parent b98f10e commit 677c456

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Identity/Core/src/SignInManagerMetrics.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ internal sealed class SignInManagerMetrics : IDisposable
1212
public const string MeterName = "Microsoft.AspNetCore.Identity";
1313

1414
public const string AuthenticateDurationName = "aspnetcore.identity.sign_in.authenticate.duration";
15-
public const string RememberedTwoFactorCounterName = "aspnetcore.identity.sign_in.remembered_two_factor_clients";
16-
public const string ForgottenTwoFactorCounterName = "aspnetcore.identity.sign_in.forgotten_two_factor_clients";
15+
public const string RememberedTwoFactorCounterName = "aspnetcore.identity.sign_in.two_factor_clients_remembered";
16+
public const string ForgottenTwoFactorCounterName = "aspnetcore.identity.sign_in.two_factor_clients_forgotten";
1717
public const string CheckPasswordAttemptsCounterName = "aspnetcore.identity.sign_in.check_password_attempts";
1818
public const string SignInsCounterName = "aspnetcore.identity.sign_in.sign_ins";
1919
public const string SignOutsCounterName = "aspnetcore.identity.sign_in.sign_outs";
@@ -33,7 +33,7 @@ public SignInManagerMetrics(IMeterFactory meterFactory)
3333
_authenticateDuration = _meter.CreateHistogram<double>(AuthenticateDurationName, "s", "The duration of authenticate attempts. The authenticate metrics is recorded by sign in methods such as PasswordSignInAsync and TwoFactorSignInAsync.");
3434
_rememberTwoFactorClientCounter = _meter.CreateCounter<long>(RememberedTwoFactorCounterName, "{client}", "The number of two factor clients remembered.");
3535
_forgetTwoFactorCounter = _meter.CreateCounter<long>(ForgottenTwoFactorCounterName, "{client}", "The number of two factor clients forgotten.");
36-
_checkPasswordCounter = _meter.CreateCounter<long>(CheckPasswordAttemptsCounterName, "{attempts}", "The number of check password attempts. Checks that the account is in a state that can log in and that the password is valid using the UserManager.CheckPasswordAsync method.");
36+
_checkPasswordCounter = _meter.CreateCounter<long>(CheckPasswordAttemptsCounterName, "{attempt}", "The number of check password attempts. Checks that the account is in a state that can log in and that the password is valid using the UserManager.CheckPasswordAsync method.");
3737
_signInsCounter = _meter.CreateCounter<long>(SignInsCounterName, "{sign_in}", "The number of calls to sign in user principals.");
3838
_signOutsCounter = _meter.CreateCounter<long>(SignOutsCounterName, "{sign_out}", "The number of calls to sign out user principals.");
3939
}

0 commit comments

Comments
 (0)