telemetry: add installation id (#2017)

* telemetry: add installation id

* set installation id globally

* remove unneeded changes
This commit is contained in:
Caleb Doxsey 2021-03-24 07:22:54 -06:00 committed by GitHub
parent 853d2dd478
commit e2ebef44ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
32 changed files with 608 additions and 483 deletions

View file

@ -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)
}