From b02381c2d574fd80982b2ce711414bbd47055f59 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 8 May 2018 12:00:03 +0200 Subject: [PATCH] Fix wrong tag in forward span in tracing middleware --- middlewares/tracing/forwarder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middlewares/tracing/forwarder.go b/middlewares/tracing/forwarder.go index 881302cb4..aa80486c5 100644 --- a/middlewares/tracing/forwarder.go +++ b/middlewares/tracing/forwarder.go @@ -33,7 +33,7 @@ func (f *forwarderMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request, span.SetTag("frontend.name", f.frontend) span.SetTag("backend.name", f.backend) ext.HTTPMethod.Set(span, r.Method) - ext.HTTPUrl.Set(span, r.URL.String()) + ext.HTTPUrl.Set(span, fmt.Sprintf("%s%s", r.URL.String(), r.RequestURI)) span.SetTag("http.host", r.Host) InjectRequestHeaders(r)