Fix wrong tag in forward span in tracing middleware
This commit is contained in:
parent
9b199ea756
commit
b02381c2d5
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ func (f *forwarderMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request,
|
||||||
span.SetTag("frontend.name", f.frontend)
|
span.SetTag("frontend.name", f.frontend)
|
||||||
span.SetTag("backend.name", f.backend)
|
span.SetTag("backend.name", f.backend)
|
||||||
ext.HTTPMethod.Set(span, r.Method)
|
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)
|
span.SetTag("http.host", r.Host)
|
||||||
|
|
||||||
InjectRequestHeaders(r)
|
InjectRequestHeaders(r)
|
||||||
|
|
Loading…
Reference in a new issue