mirror of
https://github.com/grafana/grafana.git
synced 2024-12-28 01:41:24 -06:00
mark >=400 responses as error
This commit is contained in:
parent
83ddd2b158
commit
861843f4ca
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user