@@ -34,34 +34,13 @@ internal sealed class UserManagerMetrics : IDisposable
3434 public UserManagerMetrics ( IMeterFactory meterFactory )
3535 {
3636 _meter = meterFactory . Create ( MeterName ) ;
37- _createCounter = _meter . CreateCounter < long > (
38- CreateCounterName ,
39- "count" ,
40- "The number of user creation attempts." ) ;
41- _updateCounter = _meter . CreateCounter < long > (
42- UpdateCounterName ,
43- "count" ,
44- "The number of user update attempts." ) ;
45- _deleteCounter = _meter . CreateCounter < long > (
46- DeleteCounterName ,
47- "count" ,
48- "The number of user deletion attempts." ) ;
49- _checkPasswordCounter = _meter . CreateCounter < long > (
50- CheckPasswordCounterName ,
51- "count" ,
52- "The number of password check attempts." ) ;
53- _verifyPasswordCounter = _meter . CreateCounter < long > (
54- VerifyPasswordCounterName ,
55- "count" ,
56- "The number of password verification attempts." ) ;
57- _verifyTokenCounter = _meter . CreateCounter < long > (
58- VerifyTokenCounterName ,
59- "count" ,
60- "The number of token verification attempts." ) ;
61- _generateTokenCounter = _meter . CreateCounter < long > (
62- GenerateTokenCounterName ,
63- "count" ,
64- "The number of token generation attempts." ) ;
37+ _createCounter = _meter . CreateCounter < long > ( CreateCounterName , "count" , "The number of users created." ) ;
38+ _updateCounter = _meter . CreateCounter < long > ( UpdateCounterName , "count" , "The number of user updates." ) ;
39+ _deleteCounter = _meter . CreateCounter < long > ( DeleteCounterName , "count" , "The number of users deleted." ) ;
40+ _checkPasswordCounter = _meter . CreateCounter < long > ( CheckPasswordCounterName , "count" , "The number of check password attempts." ) ;
41+ _verifyPasswordCounter = _meter . CreateCounter < long > ( VerifyPasswordCounterName , "count" , "The number of password verification attempts." ) ;
42+ _verifyTokenCounter = _meter . CreateCounter < long > ( VerifyTokenCounterName , "count" , "The number of token verification attempts." ) ;
43+ _generateTokenCounter = _meter . CreateCounter < long > ( GenerateTokenCounterName , "count" , "The number of token generation attempts." ) ;
6544 }
6645
6746 internal void CreateUser ( string userType , IdentityResult ? result , Exception ? exception = null )
0 commit comments