diff --git a/adapters.go b/adapters.go index 7fa5c8f17..6bb678bf2 100644 --- a/adapters.go +++ b/adapters.go @@ -87,11 +87,7 @@ func (s *Sensor) TracingHttpRequest(name string, parent, req *http.Request, clie span.SetTag(string(ext.HTTPStatusCode), res.StatusCode) if err != nil { - if e, ok := err.(error); ok { - span.LogFields(otlog.Error(e)) - } else { - span.LogFields(otlog.Object("error", err)) - } + span.LogFields(otlog.Error(err)) } return }