chore: instrument github oauth2 limits (#11532)

* chore: instrument github oauth2 limits

Rate limit information for github oauth2 providers instrumented in prometheus
This commit is contained in:
Steven Masley
2024-01-10 15:29:33 +00:00
committed by GitHub
parent 50b78e3325
commit 3f9da674c6
6 changed files with 421 additions and 10 deletions
+1 -1
View File
@@ -1802,7 +1802,7 @@ func configureGithubOAuth2(instrument *promoauth.Factory, accessURL *url.URL, cl
}
return &coderd.GithubOAuth2Config{
OAuth2Config: instrument.New("github-login", &oauth2.Config{
OAuth2Config: instrument.NewGithub("github-login", &oauth2.Config{
ClientID: clientID,
ClientSecret: clientSecret,
Endpoint: endpoint,