diff options
author | Igor <iwiedler@gitlab.com> | 2021-07-20 15:12:26 +0000 |
---|---|---|
committer | Igor <iwiedler@gitlab.com> | 2021-07-20 15:12:26 +0000 |
commit | 9becd67d431d215e9460b667b919801ec5f75042 (patch) | |
tree | b64750bc415d535e8e2b6aba7dcf11dd87c58d80 | |
parent | 8c932b0d5a698ea6b9a770be8f8c6ecc58b38727 (diff) | |
download | gitlab-shell-9becd67d431d215e9460b667b919801ec5f75042.tar.gz |
Add tracing instrumentation to http client
-rw-r--r-- | client/httpclient.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/httpclient.go b/client/httpclient.go index 1ae4420..0dcec94 100644 --- a/client/httpclient.go +++ b/client/httpclient.go @@ -14,6 +14,7 @@ import ( log "github.com/sirupsen/logrus" "gitlab.com/gitlab-org/labkit/correlation" + "gitlab.com/gitlab-org/labkit/tracing" ) const ( @@ -85,7 +86,7 @@ func NewHTTPClientWithOpts(gitlabURL, gitlabRelativeURLRoot, caFile, caPath stri } c := &http.Client{ - Transport: correlation.NewInstrumentedRoundTripper(transport), + Transport: correlation.NewInstrumentedRoundTripper(tracing.NewRoundTripper(transport)), Timeout: readTimeout(readTimeoutSeconds), } |