summaryrefslogtreecommitdiff
path: root/go/vendor/gitlab.com/gitlab-org/labkit/tracing/outbound_http_options.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/vendor/gitlab.com/gitlab-org/labkit/tracing/outbound_http_options.go')
-rw-r--r--go/vendor/gitlab.com/gitlab-org/labkit/tracing/outbound_http_options.go28
1 files changed, 0 insertions, 28 deletions
diff --git a/go/vendor/gitlab.com/gitlab-org/labkit/tracing/outbound_http_options.go b/go/vendor/gitlab.com/gitlab-org/labkit/tracing/outbound_http_options.go
deleted file mode 100644
index 2777b1d..0000000
--- a/go/vendor/gitlab.com/gitlab-org/labkit/tracing/outbound_http_options.go
+++ /dev/null
@@ -1,28 +0,0 @@
-package tracing
-
-import (
- "fmt"
- "net/http"
-)
-
-// The configuration for InjectCorrelationID
-type roundTripperConfig struct {
- getOperationName OperationNamer
-}
-
-// RoundTripperOption will configure a correlation handler
-type RoundTripperOption func(*roundTripperConfig)
-
-func applyRoundTripperOptions(opts []RoundTripperOption) roundTripperConfig {
- config := roundTripperConfig{
- getOperationName: func(req *http.Request) string {
- // By default use `GET https://localhost` for operation names
- return fmt.Sprintf("%s %s://%s", req.Method, req.URL.Scheme, req.URL.Host)
- },
- }
- for _, v := range opts {
- v(&config)
- }
-
- return config
-}