mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-04 20:03:18 +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
|
@ -57,7 +57,7 @@ func WithLoginURL(loginURL *url.URL) Option {
|
|||
// WithHTTPClient sets the http client to use for requests to the Azure APIs.
|
||||
func WithHTTPClient(httpClient *http.Client) Option {
|
||||
return func(cfg *config) {
|
||||
cfg.httpClient = httputil.NewLoggingClient(httpClient,
|
||||
cfg.httpClient = httputil.NewLoggingClient(httpClient, "azure_idp_client",
|
||||
func(evt *zerolog.Event) *zerolog.Event {
|
||||
return evt.Str("provider", "azure")
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue