mark >=400 responses as error

This commit is contained in:
bergquist 2017-09-18 09:10:15 +02:00
parent 83ddd2b158
commit 861843f4ca

View File

@ -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)
}
}
}