Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Slight modification of MetricsServlet to catch Exception instead of j…
…ust JsonMappingException in gauge evaluations. If a gauge throws an exception in a relatively small response, Jetty catches it before any buffers are flushed and returns an HTTP 500 with a suitable error page. If a gauge throws an exception in a larger response, after some of the buffer has been flushed to the client, Jetty cuts off the response stream, resulting in an HTTP 200 with a partial JSON response. This modification to MetricsServiet allows a gauge to throw an exception and not trigger a cut off JSON response.
- Loading branch information