Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime Martinez <jmartinez@gitlab.com>2020-09-07 09:21:01 +0300
committerJaime Martinez <jmartinez@gitlab.com>2020-09-15 07:49:29 +0300
commit264c22c58941320fdb99150c88b68a3e278b8874 (patch)
tree94bf1dd8c3427729d8e8cb657b99d1bd01b5c124 /internal/httptransport/transport_test.go
parente854f77d7a8a23bcce20421fbbc1e75b3945f888 (diff)
Add metrics for httprange and trace logs
Add metrics and trace logs Enables meteredRoundTripper to log response data in a Traceln() call. It adds a name to the round tripper for easy logging. Adds two new metrics to be used by the `httprange` package to track number of requests made to object storage. Apply 1 suggestion(s) to 1 file(s) (cherry picked from commit 57a98108c728ba6e6575a95899455d5fac536ae1)
Diffstat (limited to 'internal/httptransport/transport_test.go')
-rw-r--r--internal/httptransport/transport_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/httptransport/transport_test.go b/internal/httptransport/transport_test.go
index 330d1022..60fbbb47 100644
--- a/internal/httptransport/transport_test.go
+++ b/internal/httptransport/transport_test.go
@@ -58,7 +58,7 @@ func Test_withRoundTripper(t *testing.T) {
err: tt.err,
}
- mtr := &meteredRoundTripper{next, gaugeVec, counterVec}
+ mtr := &meteredRoundTripper{next: next, durations: gaugeVec, counter: counterVec}
r := httptest.NewRequest("GET", "/", nil)
res, err := mtr.RoundTrip(r)