diff --git a/contrib/net/http/roundtripper.go b/contrib/net/http/roundtripper.go index 0ec5b886ba..678c8b3da1 100644 --- a/contrib/net/http/roundtripper.go +++ b/contrib/net/http/roundtripper.go @@ -99,6 +99,7 @@ func (rt *roundTripper) RoundTrip(req *http.Request) (res *http.Response, err er // TODO: Client spans should only have errors on 4xx, so change this to just 4xx if sc := res.StatusCode / 100; sc == 5 || sc == 4 { span.SetTag("http.errors", res.Status) + fmt.Println("MTOFF: Setting error") span.SetTag(ext.Error, fmt.Errorf("%d: %s", res.StatusCode, http.StatusText(res.StatusCode))) } }