mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 08:50:42 +02:00
telemetry: add installation id (#2017)
* telemetry: add installation id * set installation id globally * remove unneeded changes
This commit is contained in:
parent
853d2dd478
commit
e2ebef44ef
32 changed files with 608 additions and 483 deletions
|
@ -26,7 +26,9 @@ type httpClient struct {
|
|||
}
|
||||
|
||||
func (c *httpClient) Do(req *http.Request) (*http.Response, error) {
|
||||
tripperChain := tripper.NewChain(metrics.HTTPMetricsRoundTripper("idp_http_client", req.Host))
|
||||
tripperChain := tripper.NewChain(metrics.HTTPMetricsRoundTripper(func() string {
|
||||
return ""
|
||||
}, "idp_http_client", req.Host))
|
||||
c.Client.Transport = tripperChain.Then(c.requestIDTripper)
|
||||
return c.Client.Do(req)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue