mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-05 04:13:11 +02:00
Fix IdP client metrics (#2810)
This commit is contained in:
parent
d0890d399c
commit
e2e0646f70
11 changed files with 32 additions and 31 deletions
|
@ -46,7 +46,7 @@ func WithServiceAccount(serviceAccount *ServiceAccount) Option {
|
|||
// WithHTTPClient sets the http client option.
|
||||
func WithHTTPClient(httpClient *http.Client) Option {
|
||||
return func(cfg *config) {
|
||||
cfg.httpClient = httputil.NewLoggingClient(httpClient,
|
||||
cfg.httpClient = httputil.NewLoggingClient(httpClient, "github_idp_client",
|
||||
func(evt *zerolog.Event) *zerolog.Event {
|
||||
return evt.Str("provider", "github")
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue