diff --git a/pkg/cortex/cortex.go b/pkg/cortex/cortex.go index 53ac96c394b..c2901ee22bc 100644 --- a/pkg/cortex/cortex.go +++ b/pkg/cortex/cortex.go @@ -3,12 +3,9 @@ package cortex import ( "flag" "fmt" - "net/http" "os" "github.com/go-kit/kit/log/level" - "github.com/opentracing-contrib/go-stdlib/nethttp" - "github.com/opentracing/opentracing-go" "github.com/pkg/errors" "github.com/weaveworks/common/middleware" "github.com/weaveworks/common/server" @@ -143,15 +140,6 @@ func New(cfg Config) (*Cortex, error) { target: cfg.Target, } - operationNameFunc := nethttp.OperationNameFunc(func(r *http.Request) string { - return r.URL.RequestURI() - }) - cfg.Server.HTTPMiddleware = []middleware.Interface{ - middleware.Func(func(handler http.Handler) http.Handler { - return nethttp.Middleware(opentracing.GlobalTracer(), handler, operationNameFunc) - }), - } - cortex.setupAuthMiddleware(&cfg) if err := cortex.init(&cfg, cfg.Target); err != nil {