sjl/metrics-clojure — pull request #5 by ieure (2012-08-15 20:57:45+00:00)
Title: Don’t force URIs to end with a slash

All our in-house services expose their metrics under `/metrics`, but `expose-metrics-as-json` forces a trailing slash onto whatever URI it takes, which means we have to make an exception for services using `metrics-clojure-ring`. Because `metrics-json` is private, I can't add another handler which lets me specify the URI I need.

The attached pull request removes the code which forces metrics URIs to end with a trailing slash. This will break backwards compatibility with tools which expect metrics to be exposed under `/metrics/`; I would be happy to change the default to that to avoid breakage, if that is something you'd like.