Skip to content

Commit 861843f

Browse files
committed
mark >=400 responses as error
1 parent 83ddd2b commit 861843f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/middleware/request_tracing.go

+3
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,8 @@ func RequestTracing(handler string) macaron.Handler {
2929
ext.HTTPStatusCode.Set(span, uint16(status))
3030
ext.HTTPUrl.Set(span, req.RequestURI)
3131
ext.HTTPMethod.Set(span, req.Method)
32+
if status >= 400 {
33+
ext.Error.Set(span, true)
34+
}
3235
}
3336
}

0 commit comments

Comments
 (0)