metrics: fix an apparent metric setup error (#5543)

The IdentityManagerLastSessionRefreshErrorView appears to be a duplicate
of IdentityManagerLastUserRefreshErrorView. Adjust it to use the
matching identityManagerLastSessionRefreshError instead.
This commit is contained in:
Kenneth Jenkins 2025-03-25 14:48:07 -07:00 committed by GitHub
parent e7675a5b2a
commit b188a168af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -240,11 +240,11 @@ var (
Measure: identityManagerLastSessionRefreshSuccess, Measure: identityManagerLastSessionRefreshSuccess,
Aggregation: view.Count(), Aggregation: view.Count(),
} }
// IdentityManagerLastSessionRefreshErrorView contains user refresh errors counter // IdentityManagerLastSessionRefreshErrorView contains session refresh errors counter
IdentityManagerLastSessionRefreshErrorView = &view.View{ IdentityManagerLastSessionRefreshErrorView = &view.View{
Name: identityManagerLastUserRefreshError.Name(), Name: identityManagerLastSessionRefreshError.Name(),
Description: identityManagerLastUserRefreshError.Description(), Description: identityManagerLastSessionRefreshError.Description(),
Measure: identityManagerLastUserRefreshError, Measure: identityManagerLastSessionRefreshError,
Aggregation: view.Count(), Aggregation: view.Count(),
} }
// IdentityManagerLastSessionRefreshSuccessTimestampView contains successful session refresh counter // IdentityManagerLastSessionRefreshSuccessTimestampView contains successful session refresh counter