summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor <iwiedler@gitlab.com>2021-07-20 15:12:26 +0000
committerIgor <iwiedler@gitlab.com>2021-07-20 15:12:26 +0000
commit9becd67d431d215e9460b667b919801ec5f75042 (patch)
treeb64750bc415d535e8e2b6aba7dcf11dd87c58d80
parent8c932b0d5a698ea6b9a770be8f8c6ecc58b38727 (diff)
downloadgitlab-shell-9becd67d431d215e9460b667b919801ec5f75042.tar.gz
Add tracing instrumentation to http client
-rw-r--r--client/httpclient.go3
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),
}