Merge current branch v2.4 into master

This commit is contained in:
Tom Moulard 2021-04-21 11:32:14 +02:00
commit ac486d3d1d
8 changed files with 97 additions and 4 deletions

View file

@ -117,7 +117,7 @@ func LogRequest(span opentracing.Span, r *http.Request) {
func LogResponseCode(span opentracing.Span, code int) {
if span != nil {
ext.HTTPStatusCode.Set(span, uint16(code))
if code >= 400 {
if code >= http.StatusInternalServerError {
ext.Error.Set(span, true)
}
}