diff --git a/pkg/middleware/request_tracing.go b/pkg/middleware/request_tracing.go index bf25308a2a3..c35c2a00734 100644 --- a/pkg/middleware/request_tracing.go +++ b/pkg/middleware/request_tracing.go @@ -29,5 +29,8 @@ func RequestTracing(handler string) macaron.Handler { ext.HTTPStatusCode.Set(span, uint16(status)) ext.HTTPUrl.Set(span, req.RequestURI) ext.HTTPMethod.Set(span, req.Method) + if status >= 400 { + ext.Error.Set(span, true) + } } }