Commit 861843f4 by bergquist

mark >=400 responses as error

parent 83ddd2b1
......@@ -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)
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment